Class SmartPrinter


  • public class SmartPrinter
    extends java.lang.Object
    Makes sure both wanted and actual are printed consistently (single line or multiline)

    Makes arguments printed with types if necessary

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getActual()  
      java.lang.String getWanted()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SmartPrinter

        public SmartPrinter​(InvocationMatcher wanted,
                            Invocation actual,
                            java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo)
    • Method Detail

      • getWanted

        public java.lang.String getWanted()
      • getActual

        public java.lang.String getActual()