org.mockito.internal.debugging
Class VerboseMockInvocationLogger

java.lang.Object
  extended by org.mockito.internal.debugging.VerboseMockInvocationLogger
All Implemented Interfaces:
InvocationListener

public class VerboseMockInvocationLogger
extends java.lang.Object
implements InvocationListener

Logs all invocations to standard output. Used for debugging interactions with a mock.


Constructor Summary
VerboseMockInvocationLogger()
           
VerboseMockInvocationLogger(java.io.PrintStream printStream)
           
 
Method Summary
 void reportInvocation(MethodInvocationReport methodInvocationReport)
          Called after the invocation of the listener's mock if it returned normally.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VerboseMockInvocationLogger

public VerboseMockInvocationLogger()

VerboseMockInvocationLogger

public VerboseMockInvocationLogger(java.io.PrintStream printStream)
Method Detail

reportInvocation

public void reportInvocation(MethodInvocationReport methodInvocationReport)
Description copied from interface: InvocationListener
Called after the invocation of the listener's mock if it returned normally.

Exceptions caused by this invocationListener will raise a MockitoException.

Specified by:
reportInvocation in interface InvocationListener
Parameters:
methodInvocationReport - Information about the method call that just happened.
See Also:
MethodInvocationReport