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 Type
    Method
    Description
    void
    reportInvocation(MethodInvocationReport methodInvocationReport)
    Called after the invocation of the listener's mock if it returned normally.
  • Method Details

    • 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: