Package org.junit
Class ComparisonFailure.ComparisonCompactor
java.lang.Object
org.junit.ComparisonFailure.ComparisonCompactor
- Enclosing class:
ComparisonFailure
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ELLIPSIS
- See Also:
-
DIFF_END
- See Also:
-
DIFF_START
- See Also:
-
contextLength
private final int contextLengthThe maximum length forexpectedandactualstrings to show. WhencontextLengthis exceeded, the Strings are shortened. -
expected
-
actual
-
-
Constructor Details
-
ComparisonCompactor
- Parameters:
contextLength- the maximum length of context surrounding the difference between the compared strings. When context length is exceeded, the prefixes and suffixes are compacted.expected- the expected string valueactual- the actual string value
-
-
Method Details
-
compact
-