public interface InvocationOnMock extends Serializable
A placeholder for mock, the method that was called and the arguments that were passed.
Modifier and Type | Method and Description |
---|---|
Object |
callRealMethod()
calls real method
|
<T> T |
getArgumentAt(int index,
Class<T> clazz)
Returns casted argument using position
|
Object[] |
getArguments()
returns arguments passed to the method
|
Method |
getMethod()
returns the method
|
Object |
getMock()
returns the mock object
|
Object getMock()
Method getMethod()
Object[] getArguments()
<T> T getArgumentAt(int index, Class<T> clazz)
index
- argument positionclazz
- argument type