Uses of Interface
org.assertj.core.presentation.Representation
Package
Description
-
Uses of Representation in org.assertj.core.api
Modifier and TypeMethodDescriptionAssertionInfo.representation()
WritableAssertionInfo.representation()
Modifier and TypeMethodDescriptionstatic void
AbstractAssert.setCustomRepresentation
(Representation customRepresentation) static void
Assertions.useRepresentation
(Representation customRepresentation) Use the givenRepresentation
in all remaining tests assertions.static void
BDDAssertions.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) AbstractAssert.withRepresentation
(Representation representation) Use the givenRepresentation
to describe/represent values in AssertJ error messages.Assert.withRepresentation
(Representation representation) Use the givenRepresentation
to describe/represent values in AssertJ error messages. -
Uses of Representation in org.assertj.core.api.recursive.comparison
Modifier and TypeMethodDescriptionComparisonDifference.multiLineDescription
(Representation representation) ComparisonKeyDifference.multiLineDescription
(Representation representation) RecursiveComparisonConfiguration.multiLineDescription
(Representation representation) -
Uses of Representation in org.assertj.core.configuration
Modifier and TypeMethodDescriptionConfiguration.representation()
ConfigurationProvider.representation()
Returns theRepresentation
that AssertJ will use, which is taken first from: the representation returned by a customConfiguration
throughConfiguration.representation()
but only if it is different from theStandardRepresentation
theRepresentation
with highest priority loaded from the classpath by theServiceLoader
If no custom representation was registered or overridden in a specificConfiguration
, theStandardRepresentation
is used. -
Uses of Representation in org.assertj.core.error
Modifier and TypeMethodDescriptionAssertionErrorCreator.assertionError
(String message, Object actual, Object expected, Representation representation) AbstractShouldHaveTextContent.create
(Description d, Representation representation) BasicErrorMessageFactory.create
(Description d, Representation representation) Creates a new error message as a result of a failed assertion.ErrorMessageFactory.create
(Description d, Representation p) Creates a new error message as a result of a failed assertion.protected String
ShouldBeEqual.defaultDetailedErrorMessage
(Description description, Representation representation) Builds and returns an error message from description usingShouldBeEqual.detailedExpected()
andShouldBeEqual.detailedActual()
detailed representation.MessageFormatter.format
(Description d, Representation p, String format, Object... args) Interprets a printf-style formatString
for failed assertion messages.AssertionErrorFactory.newAssertionError
(Description description, Representation representation) Creates an
.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, org.assertj.core.internal.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<org.assertj.core.internal.DeepDifference.Difference> differences, Representation representation) static ErrorMessageFactory
ShouldBeEqualByComparingFieldByFieldRecursively.shouldBeEqualByComparingFieldByFieldRecursively
(Object actual, Object other, List<ComparisonDifference> differences, RecursiveComparisonConfiguration recursiveComparisonConfiguration, Representation representation) static <K,
V> ErrorMessageFactory ShouldContainEntries.shouldContainEntries
(Map<? extends K, ? extends V> actual, Map.Entry<? extends K, ? extends V>[] expectedEntries, Set<Map.Entry<? extends K, ? extends V>> entriesWithWrongValue, Set<Map.Entry<? extends K, ? extends V>> entriesWithKeyNotFound, Representation representation) static ErrorMessageFactory
ShouldNotBeEqualComparingFieldByFieldRecursively.shouldNotBeEqualComparingFieldByFieldRecursively
(Object actual, Object other, RecursiveComparisonConfiguration recursiveComparisonConfiguration, Representation representation) protected 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.ModifierConstructorDescriptionprotected
ShouldBeEqual
(Object actual, Object expected, org.assertj.core.internal.ComparisonStrategy comparisonStrategy, Representation representation) -
Uses of Representation in org.assertj.core.presentation
Modifier and TypeClassDescriptionclass
Binary object representation instead of standard java representation.class
class
Hexadecimal object representation instead of standard java representation.class
Standard java object representation.class
Unicode object representation instead of standard java representation.Modifier and TypeMethodDescriptionCompositeRepresentation.getAllRepresentationsOrderedByPriority()
Modifier and TypeMethodDescriptionprotected String
BinaryRepresentation.toStringOf
(Representation representation, String s) protected String
HexadecimalRepresentation.toStringOf
(Representation representation, String s) -
Uses of Representation in org.assertj.core.util
Modifier and TypeMethodDescriptionstatic String
Maps.format
(Representation p, Map<?, ?> map) Deprecated.
StandardRepresentation.toStringOf(Map)
instead.