com.agical.rmock.core.action
Class ForwardingAction

java.lang.Object
  extended by com.agical.rmock.core.action.ForwardingAction
All Implemented Interfaces:
Action

public class ForwardingAction
extends Object
implements Action

(c) Agical AB 2005

Author:
joakim.ohlrogge

Constructor Summary
ForwardingAction()
           
 
Method Summary
 boolean equals(Object obj)
           
 int hashCode()
           
 Object invocation(Object[] arguments, MethodHandle methodHandle)
          Called when an invocation is made.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ForwardingAction

public ForwardingAction()
Method Detail

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 method
methodHandle - 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.