Class ValuePrinter
java.lang.Object
org.mockito.internal.matchers.text.ValuePrinter
Prints a Java object value in a way humans can read it neatly.
Inspired on hamcrest. Used for printing arguments in verification errors.
-
Method Summary
-
Method Details
-
print
Prints given value so that it is neatly readable by humans. Handles explosive toString() implementations. -
printValues
Print values in a nice format, e.g. (1, 2, 3)- Parameters:
start- the beginning of the values, e.g. "("separator- the separator of values, e.g. ", "end- the end of the values, e.g. ")"values- the values to print- Returns:
- neatly formatted value list
-