- java.lang.Object
-
- org.easymock.internal.Invocation
-
- All Implemented Interfaces:
Serializable
public final class Invocation extends Object implements Serializable
Represents a method invocation on a mock object. It's used for record one or for actual calls.- Author:
- OFFIS, Tammo Freese
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Invocation(Object mock, Method method, Object[] args)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCapture(Captures<Object> capture, Object value)voidclearCaptures()booleanequals(Object o)Object[]getArguments()Returns the arguments passed to the method invocation.MethodgetMethod()Returns the method invoked on the mock object.ObjectgetMock()Returns the mock object on which the invocation was performed.StringgetMockAndMethodName()inthashCode()StringtoString()voidvalidateCaptures()
-
-
-
Method Detail
-
getMock
public Object getMock()
Returns the mock object on which the invocation was performed.- Returns:
- the mock object on which the invocation was performed.
-
getMethod
public Method getMethod()
Returns the method invoked on the mock object.- Returns:
- the method invoked on the mock object.
-
getArguments
public Object[] getArguments()
Returns the arguments passed to the method invocation.- Returns:
- the arguments passed to the method invocation.
-
getMockAndMethodName
public String getMockAndMethodName()
-
validateCaptures
public void validateCaptures()
-
clearCaptures
public void clearCaptures()
-
-