com.agical.rmock.core.action
Class ForwardingAction
java.lang.Object
com.agical.rmock.core.action.ForwardingAction
- All Implemented Interfaces:
- Action
public class ForwardingAction
- extends Object
- implements Action
(c) Agical AB 2005
- Author:
- joakim.ohlrogge
ForwardingAction
public ForwardingAction()
invocation
public Object invocation(Object[] arguments,
MethodHandle methodHandle)
throws Throwable
- Description copied from interface:
Action
- Called when an invocation is made.
- Specified by:
invocation
in interface Action
- Parameters:
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.
- Returns:
- The value to return, null if this action represents a void method.
- Throws:
Exception
Throwable
- See Also:
Action.invocation(java.lang.Object[], com.agical.rmock.core.MethodHandle)
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals
in class Object
Copyright © 2005-2011 Agical AB. All Rights Reserved.