Package org.mockito.internal.reporting
Class SmartPrinter
- java.lang.Object
-
- org.mockito.internal.reporting.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
-
-
Constructor Summary
Constructors Constructor Description SmartPrinter(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations, java.lang.Integer[] indexesOfMatchersToBeDescribedWithExtraTypeInfo, java.util.Set<java.lang.String> classNamesToBeDescribedWithFullName)
SmartPrinter(MatchableInvocation wanted, Invocation actual, java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
getActuals()
java.lang.String
getWanted()
private static boolean
isMultiLine(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations)
-
-
-
Constructor Detail
-
SmartPrinter
public SmartPrinter(MatchableInvocation wanted, Invocation actual, java.lang.Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo)
-
SmartPrinter
public SmartPrinter(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations, java.lang.Integer[] indexesOfMatchersToBeDescribedWithExtraTypeInfo, java.util.Set<java.lang.String> classNamesToBeDescribedWithFullName)
-
-
Method Detail
-
getWanted
public java.lang.String getWanted()
-
getActuals
public java.util.List<java.lang.String> getActuals()
-
isMultiLine
private static boolean isMultiLine(MatchableInvocation wanted, java.util.List<Invocation> allActualInvocations)
-
-