Uses of Interface
org.assertj.core.presentation.Representation
-
Packages that use Representation Package Description org.assertj.core.api org.assertj.core.error org.assertj.core.presentation org.assertj.core.util -
-
Uses of Representation in org.assertj.core.api
Fields in org.assertj.core.api declared as Representation Modifier and Type Field Description 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)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.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 private java.lang.StringMessageFormatter. asText(Representation p, java.lang.Object o)java.lang.StringAbstractShouldHaveTextContent. create(Description d, Representation representation)java.lang.StringBasicErrorMessageFactory. create(Description d, Representation representation)Creates a new error message as a result of a failed assertion.java.lang.StringErrorMessageFactory. create(Description d, Representation p)Creates a new error message as a result of a failed assertion.private java.lang.StringShouldBeEqual. defaultDetailedErrorMessage(Description description, Representation representation)Builds and returns an error message from description usingShouldBeEqual.detailedExpected()andShouldBeEqual.detailedActual()detailed representation.private java.lang.StringShouldBeEqual. defaultErrorMessage(Description description, Representation representation)Builds and returns an error message from description usingShouldBeEqual.expectedandShouldBeEqual.actualbasic representation.private static java.lang.StringShouldBeEqualByComparingFieldByFieldRecursively. describeDifference(DeepDifference.Difference difference, Representation representation)java.lang.StringMessageFormatter. format(Description d, Representation p, java.lang.String format, java.lang.Object... args)Interprets a printf-style formatStringfor failed assertion messages.private java.lang.Object[]MessageFormatter. format(Representation p, java.lang.Object[] args)java.lang.AssertionErrorAssertionErrorFactory. newAssertionError(Description d, Representation representation)Creates an.AssertionErrorjava.lang.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(java.lang.Object actual, java.lang.Object expected, ComparisonStrategy comparisonStrategy, Representation representation)Creates a new.ShouldBeEqualstatic AssertionErrorFactoryShouldBeEqual. shouldBeEqual(java.lang.Object actual, java.lang.Object expected, Representation representation)Creates a new.ShouldBeEqualstatic ErrorMessageFactoryShouldBeEqualByComparingFieldByFieldRecursively. shouldBeEqualByComparingFieldByFieldRecursive(java.lang.Object actual, java.lang.Object other, java.util.List<DeepDifference.Difference> differences, Representation representation)Constructors in org.assertj.core.error with parameters of type Representation Constructor Description ShouldBeEqual(java.lang.Object actual, java.lang.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 classBinaryRepresentationBinary object representation instead of standard java representation.classHexadecimalRepresentationHexadecimal object representation instead of standard java representation.classStandardRepresentationStandard java object representation.classUnicodeRepresentationUnicode object representation instead of standard java representation.Methods in org.assertj.core.presentation with parameters of type Representation Modifier and Type Method Description protected java.lang.StringStandardRepresentation. multiLineFormat(Representation representation, java.lang.Object[] iterable, java.util.Set<java.lang.Object[]> alreadyFormatted)protected java.lang.StringStandardRepresentation. singleLineFormat(Representation representation, java.lang.Object[] iterable, java.lang.String start, java.lang.String end, java.util.Set<java.lang.Object[]> alreadyFormatted)protected java.lang.StringStandardRepresentation. smartFormat(Representation representation, java.lang.Object[] iterable)protected java.lang.StringBinaryRepresentation. toStringOf(Representation representation, java.lang.String s)protected java.lang.StringHexadecimalRepresentation. toStringOf(Representation representation, java.lang.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 java.lang.StringMaps. format(Representation p, java.util.Map<?,?> map)Deprecated.useStandardRepresentation.toStringOf(Map)instead.
-