public class ReturnDefaultValueAction extends Object implements Action
java.util.Imposteriser.null.| Constructor and Description |
|---|
ReturnDefaultValueAction() |
ReturnDefaultValueAction(Imposteriser imposteriser) |
ReturnDefaultValueAction(Imposteriser imposteriser,
Map<Class<?>,Object> typeToResultValue) |
| Modifier and Type | Method and Description |
|---|---|
void |
addResult(Class<?> resultType,
Object resultValue) |
protected static Map<Class<?>,Object> |
createDefaultResults() |
void |
describeTo(org.hamcrest.Description description) |
Object |
invoke(Invocation invocation)
Performs an action in response to an invocation.
|
void |
setImposteriser(Imposteriser newImposteriser) |
public ReturnDefaultValueAction(Imposteriser imposteriser, Map<Class<?>,Object> typeToResultValue)
public ReturnDefaultValueAction(Imposteriser imposteriser)
public ReturnDefaultValueAction()
public void setImposteriser(Imposteriser newImposteriser)
public void describeTo(org.hamcrest.Description description)
describeTo in interface org.hamcrest.SelfDescribingpublic Object 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.Copyright © 2003–2017 jMock. All rights reserved.