Class 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.
    • Field Detail

      • printStream

        final java.io.PrintStream printStream
      • mockInvocationsCounter

        private int mockInvocationsCounter
    • Constructor Detail

      • VerboseMockInvocationLogger

        public VerboseMockInvocationLogger()
      • VerboseMockInvocationLogger

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

      • printReturnedValueOrThrowable

        private void printReturnedValueOrThrowable​(MethodInvocationReport methodInvocationReport)
      • printHeader

        private void printHeader()
      • printFooter

        private void printFooter()
      • printlnIndented

        private void printlnIndented​(java.lang.String message)