public class VerboseMockInvocationLogger extends java.lang.Object implements InvocationListener
Modifier and Type | Field and Description |
---|---|
private int |
mockInvocationsCounter |
(package private) java.io.PrintStream |
printStream |
Constructor and Description |
---|
VerboseMockInvocationLogger() |
VerboseMockInvocationLogger(java.io.PrintStream printStream) |
Modifier and Type | Method and Description |
---|---|
private void |
printFooter() |
private void |
printHeader() |
private void |
printInvocation(DescribedInvocation invocation) |
private void |
printlnIndented(java.lang.String message) |
private void |
printReturnedValueOrThrowable(MethodInvocationReport methodInvocationReport) |
private void |
printStubInfo(MethodInvocationReport methodInvocationReport) |
void |
reportInvocation(MethodInvocationReport methodInvocationReport)
Called after the invocation of the listener's mock if it returned normally.
|
final java.io.PrintStream printStream
private int mockInvocationsCounter
public VerboseMockInvocationLogger()
public VerboseMockInvocationLogger(java.io.PrintStream printStream)
public void reportInvocation(MethodInvocationReport methodInvocationReport)
InvocationListener
Exceptions caused by this invocationListener will raise a MockitoException
.
reportInvocation
in interface InvocationListener
methodInvocationReport
- Information about the method call that just happened.MethodInvocationReport
private void printReturnedValueOrThrowable(MethodInvocationReport methodInvocationReport)
private void printStubInfo(MethodInvocationReport methodInvocationReport)
private void printHeader()
private void printInvocation(DescribedInvocation invocation)
private void printFooter()
private void printlnIndented(java.lang.String message)