com.agical.rmock.core.action
Class ThrowsAction

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

public class ThrowsAction
extends java.lang.Object
implements Action

(c) Agical AB 2005

Author:
brolund

Constructor Summary
ThrowsAction(java.lang.Throwable throwable)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 java.lang.Object invocation(java.lang.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

ThrowsAction

public ThrowsAction(java.lang.Throwable throwable)
Method Detail

invocation

public java.lang.Object invocation(java.lang.Object[] arguments,
                                   MethodHandle methodHandle)
                            throws java.lang.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:
java.lang.Throwable

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2005-2008 Agical AB. All Rights Reserved.