public class ReturnEnumerationAction extends Object implements Action
Enumeration over a collection.| Constructor and Description |
|---|
ReturnEnumerationAction(Collection<?> collection) |
ReturnEnumerationAction(Object... array) |
| Modifier and Type | Method and Description |
|---|---|
void |
describeTo(org.hamcrest.Description description) |
Enumeration<?> |
invoke(Invocation invocation)
Performs an action in response to an invocation.
|
public ReturnEnumerationAction(Collection<?> collection)
public ReturnEnumerationAction(Object... array)
public Enumeration<?> invoke(Invocation invocation) throws Throwable
Invokableinvoke in interface Invokableinvocation - The invocation to perform.null if the invoked method has a void return type.Throwable - An exception to be thrown to the caller, if not returning a value. Any checked exception
thrown must be in the throws list of the invoked method.public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingCopyright © 2003–2022 jMock. All rights reserved.