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.- Author:
- Mariusz Smykula
-
-
Field Summary
Fields Modifier and Type Field Description static UnicodeRepresentationUNICODE_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 StringescapeUnicode(String input)protected StringtoStringOf(Character string)StringtoStringOf(Object object)Returns hexadecimal thetoStringrepresentation of the given String or Character.protected StringtoStringOf(String string)-
Methods inherited from class org.assertj.core.presentation.StandardRepresentation
customFormat, fallbackToStringOf, format, format, formatArray, formatPrimitiveArray, getMaxElementsForPrinting, 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, toStringOf, unambiguousToStringOf
-
-
-
-
Field Detail
-
UNICODE_REPRESENTATION
public static final UnicodeRepresentation UNICODE_REPRESENTATION
-
-
Method Detail
-
toStringOf
public String toStringOf(Object object)
Returns hexadecimal thetoStringrepresentation of the given String or Character.- Specified by:
toStringOfin interfaceRepresentation- Overrides:
toStringOfin classStandardRepresentation- Parameters:
object- the given object.- Returns:
- the
toStringrepresentation of the given object.
-
toStringOf
protected String toStringOf(Character string)
- Overrides:
toStringOfin classStandardRepresentation
-
toStringOf
protected String toStringOf(String string)
- Overrides:
toStringOfin classStandardRepresentation
-
-