Uses of Interface
org.assertj.core.presentation.Representation
Packages that use Representation
Package
Description
-
Uses of Representation in org.assertj.core.api
Methods in org.assertj.core.api that return RepresentationModifier and TypeMethodDescriptionAssertionInfo.representation()WritableAssertionInfo.representation()Methods in org.assertj.core.api with parameters of type RepresentationModifier and TypeMethodDescriptionstatic voidAbstractAssert.setCustomRepresentation(Representation customRepresentation) static voidAssertions.useRepresentation(Representation customRepresentation) Use the givenRepresentationin all remaining tests assertions.static voidBDDAssertions.useRepresentation(Representation customRepresentation) Register aRepresentationthat will be used in all following assertions.default voidWithAssertions.useRepresentation(Representation customRepresentation) Register aRepresentationthat will be used in all following assertions.voidWritableAssertionInfo.useRepresentation(Representation newRepresentation) AbstractAssert.withRepresentation(Representation representation) Use the givenRepresentationto describe/represent values in AssertJ error messages.Assert.withRepresentation(Representation representation) Use the givenRepresentationto describe/represent values in AssertJ error messages.Constructors in org.assertj.core.api with parameters of type Representation -
Uses of Representation in org.assertj.core.api.recursive.comparison
Methods in org.assertj.core.api.recursive.comparison that return RepresentationMethods in org.assertj.core.api.recursive.comparison with parameters of type RepresentationModifier and TypeMethodDescriptionComparisonDifference.multiLineDescription(Representation representation) ComparisonKeyDifference.multiLineDescription(Representation representation) RecursiveComparisonConfiguration.multiLineDescription(Representation representation) RecursiveComparisonConfiguration.Builder.withRepresentation(Representation representation) Sets theRepresentationused when formatting the differences.Constructors in org.assertj.core.api.recursive.comparison with parameters of type Representation -
Uses of Representation in org.assertj.core.configuration
Methods in org.assertj.core.configuration that return RepresentationModifier and TypeMethodDescriptionConfiguration.representation()ConfigurationProvider.representation()Returns theRepresentationthat AssertJ will use, which is taken first from: the representation returned by a customConfigurationthroughConfiguration.representation()but only if it is different from theStandardRepresentationtheRepresentationwith highest priority loaded from the classpath by theServiceLoaderIf no custom representation was registered or overridden in a specificConfiguration, theStandardRepresentationis used. -
Uses of Representation in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type RepresentationModifier 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 StringShouldBeEqual.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 formatStringfor failed assertion messages.AssertionErrorFactory.newAssertionError(Description description, Representation representation) Deprecated.Creates an.AssertionErrorShouldBeEqual.newAssertionError(Description description, Representation representation) Creates anindicating that an assertion that verifies that two objects are equal failed.AssertionError
Themessage is built so that it differentiatesAssertionErrorShouldBeEqual.actualandShouldBeEqual.expecteddescription in case their string representation are the same (like 42 float and 42 double).static AssertionErrorFactoryShouldBeEqual.shouldBeEqual(Object actual, Object expected, ComparisonStrategy comparisonStrategy, Representation representation) Creates a new.ShouldBeEqualstatic AssertionErrorFactoryShouldBeEqual.shouldBeEqual(Object actual, Object expected, Representation representation) Creates a new.ShouldBeEqualstatic ErrorMessageFactoryShouldBeEqualByComparingFieldByFieldRecursively.shouldBeEqualByComparingFieldByFieldRecursive(Object actual, Object other, List<DeepDifference.Difference> differences, Representation representation) static ErrorMessageFactoryShouldBeEqualByComparingFieldByFieldRecursively.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 ErrorMessageFactoryShouldNotBeEqualComparingFieldByFieldRecursively.shouldNotBeEqualComparingFieldByFieldRecursively(Object actual, Object other, RecursiveComparisonConfiguration recursiveComparisonConfiguration, Representation representation) protected StringShouldBeEqual.smartErrorMessage(Description description, Representation representation) Builds and returns an error message from the given description usingShouldBeEqual.expectedandShouldBeEqual.actualbasic representation if their description differ otherwise useShouldBeEqual.defaultDetailedErrorMessage(Description, Representation)to represent them differently.Constructors in org.assertj.core.error with parameters of type RepresentationModifierConstructorDescriptionprotectedShouldBeEqual(Object actual, Object expected, ComparisonStrategy comparisonStrategy, Representation representation) -
Uses of Representation in org.assertj.core.internal
Constructors in org.assertj.core.internal with parameters of type RepresentationModifierConstructorDescriptionUnambiguousRepresentation(Representation representation, Object actual, Object expected) -
Uses of Representation in org.assertj.core.presentation
Classes in org.assertj.core.presentation that implement RepresentationModifier and TypeClassDescriptionclassBinary object representation instead of standard java representation.classclassHexadecimal object representation instead of standard java representation.classStandard java object representation.classUnicode object representation instead of standard java representation.Methods in org.assertj.core.presentation that return types with arguments of type RepresentationModifier and TypeMethodDescriptionCompositeRepresentation.getAllRepresentationsOrderedByPriority()Methods in org.assertj.core.presentation with parameters of type RepresentationModifier and TypeMethodDescriptionprotected StringBinaryRepresentation.toStringOf(Representation representation, String s) protected StringHexadecimalRepresentation.toStringOf(Representation representation, String s) Constructor parameters in org.assertj.core.presentation with type arguments of type Representation -
Uses of Representation in org.assertj.core.util
Methods in org.assertj.core.util with parameters of type RepresentationModifier and TypeMethodDescriptionstatic StringMaps.format(Representation p, Map<?, ?> map) Deprecated.
StandardRepresentation.toStringOf(Map)instead.