|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jmock.lib.action.ReturnValueAction
public class ReturnValueAction
Returns a value.
Constructor Summary | |
---|---|
ReturnValueAction(java.lang.Object result)
|
Method Summary | |
---|---|
void |
describeTo(Description description)
|
java.lang.Object |
invoke(Invocation invocation)
Performs an action in response to an invocation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReturnValueAction(java.lang.Object result)
Method Detail |
---|
public java.lang.Object invoke(Invocation invocation) throws java.lang.Throwable
Invokable
invoke
in interface Invokable
invocation
- The invocation to perform.
null
if the invoked method has a void return type.
java.lang.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(Description description)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |