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 |
getArgument(int index)
Returns casted argument at the given index
|
<T> T |
getArgumentAt(int index,
Class<T> clazz)
Deprecated.
use
getArgument(int) |
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()
@Deprecated <T> T getArgumentAt(int index, Class<T> clazz)
getArgument(int)
index
- argument positionclazz
- argument type<T> T getArgument(int index)
index
- argument index