org.mockito.invocation
public interface Invocation extends InvocationOnMock, DescribedInvocation
The javadoc does not have lots of examples or documentation because its audience is different. Vast majority of users don't need to use the Invocation. It's mostly useful for other framework authors that extend Mockito.
Modifier and Type | Method and Description |
---|---|
Location |
getLocation()
The place in the code where the invocation happened.
|
Object[] |
getRawArguments()
Returns unprocessed arguments whereas
InvocationOnMock.getArguments() returns
arguments already processed (e.g. |
Class<?> |
getRawReturnType()
Returns unprocessed arguments whereas
InvocationOnMock.getArguments() returns
arguments already processed (e.g. |
int |
getSequenceNumber() |
void |
ignoreForVerification()
Configures this invocation to be ignored for verify-no-more-invocations or verification in order.
|
boolean |
isIgnoredForVerification()
Informs if the invocation participates in verify-no-more-invocations or verification in order.
|
boolean |
isVerified() |
void |
markStubbed(StubInfo stubInfo)
Marks this invocation as stubbed.
|
void |
markVerified()
Marks this invocation as verified so that it will not cause verification error at
Mockito.verifyNoMoreInteractions(Object...) |
StubInfo |
stubInfo() |
callRealMethod, getArgument, getArguments, getMethod, getMock
toString
boolean isVerified()
Mockito.verifyNoMoreInteractions(Object...)
int getSequenceNumber()
Location getLocation()
DescribedInvocation
getLocation
in interface DescribedInvocation
Object[] getRawArguments()
InvocationOnMock.getArguments()
returns
arguments already processed (e.g. varargs expended, etc.).Class<?> getRawReturnType()
InvocationOnMock.getArguments()
returns
arguments already processed (e.g. varargs expended, etc.).void markVerified()
Mockito.verifyNoMoreInteractions(Object...)
StubInfo stubInfo()
void markStubbed(StubInfo stubInfo)
stubInfo
- the information about stubbing.boolean isIgnoredForVerification()
void ignoreForVerification()
isIgnoredForVerification()