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.
- Author:
- Mariusz Smykula
-
Nested Class Summary
Nested classes/interfaces inherited from class org.assertj.core.presentation.StandardRepresentation
StandardRepresentation.GroupType
-
Field Summary
Fields inherited from class org.assertj.core.presentation.StandardRepresentation
ELEMENT_SEPARATOR, ELEMENT_SEPARATOR_WITH_NEWLINE, STANDARD_REPRESENTATION
Fields inherited from interface org.assertj.core.presentation.Representation
DEFAULT_PRIORITY
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
classNameDisambiguation, customFormat, fallbackToStringOf, format, 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, toStringOf, unambiguousToStringOf
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.assertj.core.presentation.Representation
getPriority
-
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
-