Package org.mockito.listeners
Interface InvocationListener
public interface InvocationListener
This listener can be notified of method invocations on a mock.
For this to happen, it must be registered using
MockSettings.invocationListeners(InvocationListener...)
.-
Method Summary
Modifier and TypeMethodDescriptionvoid
reportInvocation
(MethodInvocationReport methodInvocationReport) Called after the invocation of the listener's mock if it returned normally.
-
Method Details
-
reportInvocation
Called after the invocation of the listener's mock if it returned normally.Exceptions caused by this invocationListener will raise a
MockitoException
.- Parameters:
methodInvocationReport
- Information about the method call that just happened.- See Also:
-