Constructor and Description |
---|
ReturnAction(Object valueToReturn) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
hashCode() |
Object |
invocation(Object[] arguments,
MethodHandle methodHandle)
Called when an invocation is made.
|
public ReturnAction(Object valueToReturn)
object
- valueToReturnpublic Object invocation(Object[] arguments, MethodHandle methodHandle)
Action
invocation
in interface Action
arguments
- The arguments passed to the invoked methodmethodHandle
- A method handle that can optionally be used to invoke the equivalent method
of the mocked/intercepted class.com.agical.rmock.core.InvocationHandler#invocation(java.lang.Object[], com.agical.rmock.core.MethodHandle)
Copyright © 2005-2013 Agical AB. All Rights Reserved.