public interface VerificationData
Modifier and Type | Method and Description |
---|---|
java.util.List<Invocation> |
getAllInvocations()
All invocations recorded on the mock object that is being verified.
|
MatchableInvocation |
getTarget()
The target or wanted invocation.
|
InvocationMatcher |
getWanted()
Deprecated.
- This internal method leaks internal class
InvocationMatcher .
Please use getTarget() instead.
Deprecated since 2.2.12 |
java.util.List<Invocation> getAllInvocations()
MatchableInvocation getTarget()
mock.foo(); // <- invocation 1
mock.bar(); // <- invocation 2
verify(mock).bar(); // <- target invocation
Target invocation can contain argument matchers therefore the returned type is MatchableInvocation
and not Invocation
.@Deprecated InvocationMatcher getWanted()
InvocationMatcher
.
Please use getTarget()
instead.
Deprecated since 2.2.12