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 usingMockSettings.invocationListeners(InvocationListener...)
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
reportInvocation(MethodInvocationReport methodInvocationReport)
Called after the invocation of the listener's mock if it returned normally.
-
-
-
Method Detail
-
reportInvocation
void reportInvocation(MethodInvocationReport methodInvocationReport)
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:
MethodInvocationReport
-
-