Class VerificationDataImpl
java.lang.Object
org.mockito.internal.verification.VerificationDataImpl
- All Implemented Interfaces:
VerificationData
-
Constructor Summary
ConstructorDescriptionVerificationDataImpl
(InvocationContainerImpl invocations, InvocationMatcher wanted) -
Method Summary
Modifier and TypeMethodDescriptionAll invocations recorded on the mock object that is being verified.The target or wanted invocation.
-
Constructor Details
-
VerificationDataImpl
-
-
Method Details
-
getAllInvocations
Description copied from interface:VerificationData
All invocations recorded on the mock object that is being verified. Does not include invocations recorded on other mock objects.- Specified by:
getAllInvocations
in interfaceVerificationData
-
getTarget
Description copied from interface:VerificationData
The target or wanted invocation. Below example illustrates what is the 'target' invocation:
Target invocation can contain argument matchers therefore the returned type ismock.foo(); // <- invocation 1 mock.bar(); // <- invocation 2 verify(mock).bar(); // <- target invocation
MatchableInvocation
and notInvocation
.- Specified by:
getTarget
in interfaceVerificationData
-