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 (package private) static RepresentationAbstractAssert. customRepresentationprivate RepresentationWritableAssertionInfo. representationMethods in org.assertj.core.api that return Representation Modifier and Type Method Description RepresentationAssertionInfo. representation()RepresentationWritableAssertionInfo. representation()Methods in org.assertj.core.api with parameters of type Representation Modifier and Type Method Description static 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)SELFAbstractAssert. withRepresentation(Representation representation)Use the givenRepresentationto describe/represent values in AssertJ error messages.SELFAssert. withRepresentation(Representation representation)Use the givenRepresentationto 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 StringRecursiveComparisonConfiguration. describeIgnoredOverriddenEqualsForTypes(Representation representation)private voidRecursiveComparisonConfiguration. describeIgnoredOverriddenEqualsMethods(StringBuilder description, Representation representation)private voidRecursiveComparisonConfiguration. describeOverriddenEqualsMethodsUsage(StringBuilder description, Representation representation)StringComparisonDifference. multiLineDescription(Representation representation)StringComparisonKeyDifference. multiLineDescription(Representation representation)StringRecursiveComparisonConfiguration. multiLineDescription(Representation representation) -
Uses of Representation in org.assertj.core.configuration
Methods in org.assertj.core.configuration that return Representation Modifier and Type Method Description RepresentationConfiguration. representation()RepresentationConfigurationProvider. 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
Fields in org.assertj.core.error declared as Representation Modifier and Type Field Description private RepresentationShouldBeEqual. representationMethods in org.assertj.core.error with parameters of type Representation Modifier and Type Method Description AssertionErrorAssertionErrorCreator. assertionError(String message, Object actual, Object expected, Representation representation)private AssertionErrorShouldBeEqual. assertionFailedError(String message, Representation representation)private StringMessageFormatter. asText(Representation p, Object o)private static <K,V>
List<String>ShouldContainEntries. buildValueDifferences(Map<? extends K,? extends V> actual, Set<Map.Entry<? extends K,? extends V>> entriesWithWrongValues, Representation representation)private Optional<AssertionError>AssertionErrorCreator. comparisonFailure(String message, Object actual, Object expected, Representation representation)StringAbstractShouldHaveTextContent. create(Description d, Representation representation)StringBasicErrorMessageFactory. create(Description d, Representation representation)Creates a new error message as a result of a failed assertion.StringErrorMessageFactory. 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.private static StringShouldBeEqualByComparingFieldByFieldRecursively. describeDifference(org.assertj.core.internal.DeepDifference.Difference difference, Representation representation)private StringShouldBeEqual. errorMessageForMultilineValues(Description description, Representation representation, String actualRepresentation, String expectedRepresentation)StringMessageFormatter. format(Description d, Representation p, String format, Object... args)Interprets a printf-style formatStringfor failed assertion messages.private Object[]MessageFormatter. format(Representation p, Object[] args)private StringShouldBeEqual. messageForMultilineValues(String actualRepresentation, String expectedRepresentation, Representation representation)AssertionErrorAssertionErrorFactory. newAssertionError(Description description, Representation representation)Creates an.AssertionErrorAssertionErrorShouldBeEqual. 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, org.assertj.core.internal.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<org.assertj.core.internal.DeepDifference.Difference> differences, Representation representation)static ErrorMessageFactoryShouldBeEqualByComparingFieldByFieldRecursively. shouldBeEqualByComparingFieldByFieldRecursively(Object actual, Object other, List<ComparisonDifference> differences, RecursiveComparisonConfiguration recursiveComparisonConfiguration, Representation representation)static <K,V>
ErrorMessageFactoryShouldContainEntries. 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.private static <K,V>
StringShouldContainEntries. valueDifference(Map<? extends K,? extends V> actual, Map.Entry<? extends K,? extends V> entryWithWrongValue, Representation representation)Constructors in org.assertj.core.error with parameters of type Representation Constructor Description ShouldBeEqual(Object actual, Object expected, org.assertj.core.internal.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 classBinaryRepresentationBinary object representation instead of standard java representation.classCompositeRepresentationclassHexadecimalRepresentationHexadecimal object representation instead of standard java representation.classStandardRepresentationStandard java object representation.classUnicodeRepresentationUnicode object representation instead of standard java representation.Fields in org.assertj.core.presentation with type parameters of type Representation Modifier and Type Field Description private List<Representation>CompositeRepresentation. representationsMethods in org.assertj.core.presentation that return types with arguments of type Representation Modifier and Type Method Description List<Representation>CompositeRepresentation. getAllRepresentationsOrderedByPriority()Methods in org.assertj.core.presentation with parameters of type Representation Modifier and Type Method Description protected 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 Constructor Description CompositeRepresentation(List<Representation> representations) -
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 StringMaps. format(Representation p, Map<?,?> map)Deprecated.useStandardRepresentation.toStringOf(Map)instead.
-