Package org.assertj.core.presentation
Class UnicodeRepresentation
- java.lang.Object
-
- org.assertj.core.presentation.StandardRepresentation
-
- org.assertj.core.presentation.UnicodeRepresentation
-
- All Implemented Interfaces:
Representation
public class UnicodeRepresentation extends StandardRepresentation
Unicode object representation instead of standard java representation.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.assertj.core.presentation.StandardRepresentation
StandardRepresentation.GroupType
-
-
Field Summary
Fields Modifier and Type Field Description static UnicodeRepresentation
UNICODE_REPRESENTATION
-
Fields 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 Constructor Description UnicodeRepresentation()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private static java.lang.String
escapeUnicode(java.lang.String input)
protected java.lang.String
toStringOf(java.lang.Character string)
java.lang.String
toStringOf(java.lang.Object object)
Returns hexadecimal thetoString
representation of the given String or Character.protected java.lang.String
toStringOf(java.lang.String string)
-
Methods inherited from class org.assertj.core.presentation.StandardRepresentation
classNameDisambiguation, customFormat, fallbackToStringOf, format, format, formatArray, formatPrimitiveArray, getMaxElementsForPrinting, getMaxLengthForSingleLineDescription, getMaxStackTraceElementsDisplayed, hasAlreadyAnUnambiguousToStringOf, hasCustomFormatterFor, multiLineFormat, multiLineFormat, registerFormatterForType, removeAllRegisteredFormatters, resetDefaults, safeStringOf, setMaxElementsForPrinting, setMaxLengthForSingleLineDescription, setMaxStackTraceElementsDisplayed, 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, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, toStringOf, unambiguousToStringOf
-
-
-
-
Field Detail
-
UNICODE_REPRESENTATION
public static final UnicodeRepresentation UNICODE_REPRESENTATION
-
-
Method Detail
-
toStringOf
public java.lang.String toStringOf(java.lang.Object object)
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
protected java.lang.String toStringOf(java.lang.Character string)
- Overrides:
toStringOf
in classStandardRepresentation
-
toStringOf
protected java.lang.String toStringOf(java.lang.String string)
- Overrides:
toStringOf
in classStandardRepresentation
-
escapeUnicode
private static java.lang.String escapeUnicode(java.lang.String input)
-
-