com.agical.rmock.core.action
Class ThrowsAction
java.lang.Object
com.agical.rmock.core.action.ThrowsAction
- All Implemented Interfaces:
- Action
public class ThrowsAction
- extends Object
- implements Action
(c) Agical AB 2005
- Author:
- brolund
ThrowsAction
public ThrowsAction(Throwable throwable)
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:
Throwable
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.