|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Incubating public interface Invocation
A method call on a mock object. Contains all information and state needed for the Mockito framework to operate. This API might be useful for developers who extend Mockito.
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.
Method Summary | |
---|---|
Location |
getLocation()
The place in the code where the invocation happened. |
java.lang.Object[] |
getRawArguments()
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()
|
Methods inherited from interface org.mockito.invocation.InvocationOnMock |
---|
callRealMethod, getArguments, getMethod, getMock |
Methods inherited from interface org.mockito.invocation.DescribedInvocation |
---|
toString |
Method Detail |
---|
boolean isVerified()
Mockito.verifyNoMoreInteractions(Object...)
int getSequenceNumber()
Location getLocation()
DescribedInvocation
getLocation
in interface DescribedInvocation
getLocation
in interface PrintableInvocation
java.lang.Object[] getRawArguments()
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |