Uses of Interface
org.assertj.core.presentation.Representation
-
-
Uses of Representation in org.assertj.core.api
Fields in org.assertj.core.api declared as Representation Modifier and Type Field Description private static Representation
AbstractAssert. customRepresentation
private Representation
WritableAssertionInfo. representation
Methods in org.assertj.core.api that return Representation Modifier and Type Method Description Representation
AssertionInfo. representation()
Representation
WritableAssertionInfo. representation()
Methods in org.assertj.core.api with parameters of type Representation Modifier and Type Method Description static void
AbstractAssert. setCustomRepresentation(Representation customRepresentation)
static void
Assertions. useRepresentation(Representation customRepresentation)
Register aRepresentation
that will be used in all following assertions.default void
WithAssertions. useRepresentation(Representation customRepresentation)
Register aRepresentation
that will be used in all following assertions.void
WritableAssertionInfo. useRepresentation(Representation newRepresentation)
SELF
AbstractAssert. withRepresentation(Representation representation)
Use the givenRepresentation
to describe/represent values in AssertJ error messages.SELF
Assert. withRepresentation(Representation representation)
Use the givenRepresentation
to describe/represent values in AssertJ error messages.Constructors in org.assertj.core.api with parameters of type Representation Constructor Description WritableAssertionInfo(Representation customRepresentation)
-
Uses of Representation in org.assertj.core.api.recursive.comparison
Methods in org.assertj.core.api.recursive.comparison with parameters of type Representation Modifier and Type Method Description private String
RecursiveComparisonConfiguration. describeIgnoredOverriddenEqualsForTypes(Representation representation)
private void
RecursiveComparisonConfiguration. describeIgnoredOverriddenEqualsMethods(StringBuilder description, Representation representation)
private void
RecursiveComparisonConfiguration. describeOverriddenEqualsMethodsUsage(StringBuilder description, Representation representation)
String
ComparisonDifference. multiLineDescription(Representation representation)
String
RecursiveComparisonConfiguration. multiLineDescription(Representation representation)
-
Uses of Representation in org.assertj.core.configuration
Fields in org.assertj.core.configuration declared as Representation Modifier and Type Field Description private Representation
ConfigurationProvider. representation
Methods in org.assertj.core.configuration that return Representation Modifier and Type Method Description Representation
Configuration. representation()
Representation
ConfigurationProvider. representation()
Returns the defaultRepresentation
that needs to be used within AssertJ, which is taken first from: a registeredConfiguration.representation()
if any a registeredRepresentation
If no custom representation was registered, theStandardRepresentation
will be used. -
Uses of Representation in org.assertj.core.error
Fields in org.assertj.core.error declared as Representation Modifier and Type Field Description private Representation
ShouldBeEqual. representation
Methods in org.assertj.core.error with parameters of type Representation Modifier and Type Method Description private String
MessageFormatter. asText(Representation p, Object o)
String
AbstractShouldHaveTextContent. create(Description d, Representation representation)
String
BasicErrorMessageFactory. create(Description d, Representation representation)
Creates a new error message as a result of a failed assertion.String
ErrorMessageFactory. create(Description d, Representation p)
Creates a new error message as a result of a failed assertion.private String
ShouldBeEqual. defaultDetailedErrorMessage(Description description, Representation representation)
Builds and returns an error message from description usingShouldBeEqual.detailedExpected()
andShouldBeEqual.detailedActual()
detailed representation.private static String
ShouldBeEqualByComparingFieldByFieldRecursively. describeDifference(DeepDifference.Difference difference, Representation representation)
String
MessageFormatter. format(Description d, Representation p, String format, Object... args)
Interprets a printf-style formatString
for failed assertion messages.private Object[]
MessageFormatter. format(Representation p, Object[] args)
AssertionError
AssertionErrorFactory. newAssertionError(Description description, Representation representation)
Creates an
.AssertionError
AssertionError
ShouldBeEqual. newAssertionError(Description description, Representation representation)
Creates an
indicating that an assertion that verifies that two objects are equal failed.AssertionError
The
message is built so that it differentiatesAssertionError
ShouldBeEqual.actual
andShouldBeEqual.expected
description in case their string representation are the same (like 42 float and 42 double).static AssertionErrorFactory
ShouldBeEqual. shouldBeEqual(Object actual, Object expected, ComparisonStrategy comparisonStrategy, Representation representation)
Creates a new
.ShouldBeEqual
static AssertionErrorFactory
ShouldBeEqual. shouldBeEqual(Object actual, Object expected, Representation representation)
Creates a new
.ShouldBeEqual
static ErrorMessageFactory
ShouldBeEqualByComparingFieldByFieldRecursively. shouldBeEqualByComparingFieldByFieldRecursive(Object actual, Object other, List<DeepDifference.Difference> differences, Representation representation)
static ErrorMessageFactory
ShouldBeEqualByComparingFieldByFieldRecursively. shouldBeEqualByComparingFieldByFieldRecursively(Object actual, Object other, List<ComparisonDifference> differences, RecursiveComparisonConfiguration recursiveComparisonConfiguration, Representation representation)
private String
ShouldBeEqual. smartErrorMessage(Description description, Representation representation)
Builds and returns an error message from the given description usingShouldBeEqual.expected
andShouldBeEqual.actual
basic representation if their description differ otherwise useShouldBeEqual.defaultDetailedErrorMessage(Description, Representation)
to represent them differently.Constructors in org.assertj.core.error with parameters of type Representation Constructor Description ShouldBeEqual(Object actual, Object expected, ComparisonStrategy comparisonStrategy, Representation representation)
-
Uses of Representation in org.assertj.core.presentation
Classes in org.assertj.core.presentation that implement Representation Modifier and Type Class Description class
BinaryRepresentation
Binary object representation instead of standard java representation.class
HexadecimalRepresentation
Hexadecimal object representation instead of standard java representation.class
StandardRepresentation
Standard java object representation.class
UnicodeRepresentation
Unicode object representation instead of standard java representation.Methods in org.assertj.core.presentation with parameters of type Representation Modifier and Type Method Description protected String
BinaryRepresentation. toStringOf(Representation representation, String s)
protected String
HexadecimalRepresentation. toStringOf(Representation representation, String s)
-
Uses of Representation in org.assertj.core.util
Methods in org.assertj.core.util with parameters of type Representation Modifier and Type Method Description static String
Maps. format(Representation p, Map<?,?> map)
Deprecated.useStandardRepresentation.toStringOf(Map)
instead.
-