Package org.mockito.internal.reporting
Class SmartPrinter
java.lang.Object
org.mockito.internal.reporting.SmartPrinter
Makes sure both wanted and actual are printed consistently (single line or multiline)
Makes arguments printed with types if necessary
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSmartPrinter
(MatchableInvocation wanted, List<Invocation> allActualInvocations, Integer[] indexesOfMatchersToBeDescribedWithExtraTypeInfo, Set<String> classNamesToBeDescribedWithFullName) SmartPrinter
(MatchableInvocation wanted, Invocation actual, Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean
isMultiLine
(MatchableInvocation wanted, List<Invocation> allActualInvocations)
-
Field Details
-
wanted
-
actuals
-
-
Constructor Details
-
SmartPrinter
public SmartPrinter(MatchableInvocation wanted, Invocation actual, Integer... indexesOfMatchersToBeDescribedWithExtraTypeInfo) -
SmartPrinter
public SmartPrinter(MatchableInvocation wanted, List<Invocation> allActualInvocations, Integer[] indexesOfMatchersToBeDescribedWithExtraTypeInfo, Set<String> classNamesToBeDescribedWithFullName)
-
-
Method Details
-
getWanted
-
getActuals
-
isMultiLine
private static boolean isMultiLine(MatchableInvocation wanted, List<Invocation> allActualInvocations)
-