Package org.assertj.core.presentation
Class UnicodeRepresentation
java.lang.Object
org.assertj.core.presentation.StandardRepresentation
org.assertj.core.presentation.UnicodeRepresentation
- All Implemented Interfaces:
Representation
Unicode object representation instead of standard java representation.
-
Field Summary
FieldsFields inherited from class org.assertj.core.presentation.StandardRepresentation
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, INDENTATION_AFTER_NEWLINE, INDENTATION_FOR_SINGLE_LINE, STANDARD_REPRESENTATION
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
escapeUnicode
(String input) protected String
toStringOf
(Character string) toStringOf
(Object object) Returns hexadecimal thetoString
representation of the given String or Character.protected String
toStringOf
(String string) Methods inherited from class org.assertj.core.presentation.StandardRepresentation
customFormat, format, format, formatArray, formatPrimitiveArray, getMaxLengthForSingleLineDescription, hasCustomFormatterFor, multiLineFormat, multiLineFormat, registerFormatterForType, removeAllRegisteredFormatters, resetDefaults, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, singleLineFormat, singleLineFormat, smartFormat, smartFormat, toString, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, unambiguousToStringOf
-
Field Details
-
UNICODE_REPRESENTATION
-
-
Constructor Details
-
UnicodeRepresentation
public UnicodeRepresentation()
-
-
Method Details
-
toStringOf
Returns hexadecimal thetoString
representation of the given String or Character.- Specified by:
toStringOf
in interfaceRepresentation
- Overrides:
toStringOf
in classStandardRepresentation
- Parameters:
object
- the given object.- Returns:
- the
toString
representation of the given object.
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
- Overrides:
toStringOf
in classStandardRepresentation
-
escapeUnicode
-