Uses of Class
org.assertj.core.description.Description
-
Packages that use Description Package Description org.assertj.core.api org.assertj.core.description org.assertj.core.error -
-
Uses of Description in org.assertj.core.api
Fields in org.assertj.core.api declared as Description Modifier and Type Field Description (package private) Description
Condition. description
protected Description
ThrowableTypeAssert. description
private Description
WritableAssertionInfo. description
Methods in org.assertj.core.api that return Description Modifier and Type Method Description Description
AssertionInfo. description()
Returns the description of an assertion.Description
Condition. description()
Returns the description of this condition.Description
WritableAssertionInfo. description()
Returns the description of an assertion.Methods in org.assertj.core.api with parameters of type Description Modifier and Type Method Description SELF
AbstractIterableAssert. as(Description description)
SELF
AbstractListAssert. as(Description description)
SELF
AbstractMapAssert. as(Description description)
SELF
AbstractObjectArrayAssert. as(Description description)
SELF
AbstractObjectAssert. as(Description description)
AtomicReferenceArrayAssert<T>
AtomicReferenceArrayAssert. as(Description description)
default SELF
Descriptable. as(Description description)
Sets the description of the assertion that is going to be called after.SELF
AbstractAssert. describedAs(Description description)
Sets the description of the assertion that is going to be called after.SELF
AbstractIterableAssert. describedAs(Description description)
SELF
AbstractListAssert. describedAs(Description description)
SELF
AbstractMapAssert. describedAs(Description description)
Condition<T>
Condition. describedAs(Description newDescription)
Sets the description of the assertion that is going to be called after.SELF
Descriptable. describedAs(Description description)
Sets the description of the assertion that is going to be called after.ThrowableAssertAlternative<T>
ThrowableAssertAlternative. describedAs(Description description)
Sets the description of the assertion that is going to be called after.ThrowableTypeAssert<T>
ThrowableTypeAssert. describedAs(Description description)
Sets the description of the assertion that is going to be called after.void
WritableAssertionInfo. description(Description newDescription)
Sets the description of an assertion, if given null an emptyDescription
is set.Constructors in org.assertj.core.api with parameters of type Description Constructor Description Condition(Description description)
Creates a new
.Condition
-
Uses of Description in org.assertj.core.description
Subclasses of Description in org.assertj.core.description Modifier and Type Class Description class
EmptyTextDescription
A description containing empty text.class
JoinDescription
TheDescription
combining multipleDescription
s.class
TextDescription
A text-based description.Fields in org.assertj.core.description declared as Description Modifier and Type Field Description private static Description
EmptyTextDescription. INSTANCE
Fields in org.assertj.core.description with type parameters of type Description Modifier and Type Field Description (package private) Collection<Description>
JoinDescription. descriptions
Methods in org.assertj.core.description that return Description Modifier and Type Method Description private static Description
JoinDescription. checkNotNull(Description description)
static Description
EmptyTextDescription. emptyDescription()
static Description
Description. emptyIfNull(Description description)
Methods in org.assertj.core.description with parameters of type Description Modifier and Type Method Description private static Description
JoinDescription. checkNotNull(Description description)
static Description
Description. emptyIfNull(Description description)
static String
Description. mostRelevantDescription(Description existingDescription, String newDescription)
Constructor parameters in org.assertj.core.description with type arguments of type Description Constructor Description JoinDescription(String prefix, String suffix, Collection<Description> descriptions)
Creates a new
.JoinDescription
-
Uses of Description in org.assertj.core.error
Methods in org.assertj.core.error with parameters of type Description Modifier and Type Method Description private AssertionError
ShouldBeEqual. comparisonFailure(Description description)
String
AbstractShouldHaveTextContent. create(Description d, Representation representation)
String
BasicErrorMessageFactory. create(Description d)
Creates a new error message as a result of a failed assertion withStandardRepresentation
.String
BasicErrorMessageFactory. create(Description d, Representation representation)
Creates a new error message as a result of a failed assertion.String
ErrorMessageFactory. create(Description d)
Creates a new error message as a result of a failed assertion withStandardRepresentation
.String
ErrorMessageFactory. create(Description d, Representation p)
Creates a new error message as a result of a failed assertion.private String
ShouldBeEqual. defaultDetailedErrorMessage(Description description, Representation representation)
Builds and returns an error message from description usingShouldBeEqual.detailedExpected()
andShouldBeEqual.detailedActual()
detailed representation.String
DescriptionFormatter. format(Description d)
Formats the given
by surrounding its text value with square brackets and adding a space at the end.Description
String
MessageFormatter. format(Description d, Representation p, String format, Object... args)
Interprets a printf-style formatString
for failed assertion messages.private static String
MultipleAssertionsError. formatDescription(Description description)
private static String
AssertionErrorCreator. headingFrom(Description description)
AssertionError
AssertionErrorCreator. multipleAssertionsError(Description description, List<? extends AssertionError> errors)
AssertionError
AssertionErrorFactory. newAssertionError(Description description, Representation representation)
Creates an
.AssertionError
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).private 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.Constructors in org.assertj.core.error with parameters of type Description Constructor Description MultipleAssertionsError(Description description, List<? extends AssertionError> errors)
-