org.mockito.invocation
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
|
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 getArgument(int index)
index
- argument index