Uses of Interface
org.assertj.core.presentation.Representation
Packages that use Representation
Package
Description
-
Uses of Representation in org.assertj.core.api
Fields in org.assertj.core.api declared as RepresentationModifier and TypeFieldDescriptionprivate static RepresentationAbstractAssert.customRepresentationprivate RepresentationWritableAssertionInfo.representationMethods 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) 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.error
Fields in org.assertj.core.error declared as RepresentationMethods in org.assertj.core.error with parameters of type RepresentationModifier and TypeMethodDescriptionprivate StringMessageFormatter.asText(Representation p, Object o) 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.private StringShouldBeEqual.defaultDetailedErrorMessage(Description description, Representation representation) Builds and returns an error message from description usingShouldBeEqual.detailedExpected()andShouldBeEqual.detailedActual()detailed representation.private StringShouldBeEqual.defaultErrorMessage(Description description, Representation representation) Builds and returns an error message from description usingShouldBeEqual.expectedandShouldBeEqual.actualbasic representation.private static StringShouldBeEqualByComparingFieldByFieldRecursively.describeDifference(DeepDifference.Difference difference, Representation representation) MessageFormatter.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) AssertionErrorFactory.newAssertionError(Description d, Representation representation) 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) Constructors in org.assertj.core.error with parameters of type RepresentationModifierConstructorDescription(package private)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 RepresentationModifier and TypeClassDescriptionclassBinary object representation instead of standard java representation.classHexadecimal 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 with parameters of type RepresentationModifier and TypeMethodDescriptionprotected StringStandardRepresentation.multiLineFormat(Representation representation, Object[] iterable, Set<Object[]> alreadyFormatted) protected StringStandardRepresentation.singleLineFormat(Representation representation, Object[] iterable, String start, String end, Set<Object[]> alreadyFormatted) protected StringStandardRepresentation.smartFormat(Representation representation, Object[] iterable) protected StringBinaryRepresentation.toStringOf(Representation representation, String s) protected StringHexadecimalRepresentation.toStringOf(Representation representation, String s) -
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.