Uses of Class
org.assertj.core.description.Description
Package
Description
-
Uses of Description in org.assertj.core.api
Modifier and TypeFieldDescriptionprotected Description
NotThrownAssert.description
protected Description
ThrowableTypeAssert.description
Modifier and TypeMethodDescriptionCondition.conditionDescriptionWithStatus
(T actual) Returns the description of this condition with its status failed or success.AssertionInfo.description()
Returns the description of an assertion.Condition.description()
Returns the description of this condition.WritableAssertionInfo.description()
Returns the description of an assertion.Modifier and TypeMethodDescriptionAbstractIterableAssert.as
(Description description) AbstractListAssert.as
(Description description) AbstractMapAssert.as
(Description description) AbstractObjectArrayAssert.as
(Description description) AbstractObjectAssert.as
(Description description) AtomicReferenceArrayAssert.as
(Description description) default SELF
Descriptable.as
(Description description) Sets the description of the assertion that is going to be called after.SoftThrowableAssertAlternative.as
(Description description) ThrowableAssertAlternative.as
(Description description) AbstractAssert.describedAs
(Description description) Sets the description of the assertion that is going to be called after.AbstractIterableAssert.describedAs
(Description description) AbstractListAssert.describedAs
(Description description) AbstractMapAssert.describedAs
(Description description) Condition.describedAs
(Description newDescription) Sets the description of the assertion that is going to be called after.Descriptable.describedAs
(Description description) Sets the description of the assertion that is going to be called after.NotThrownAssert.describedAs
(Description description) Sets the description of the assertion that is going to be called after.SoftThrowableTypeAssert.describedAs
(Description description) ThrowableAssertAlternative.describedAs
(Description description) Sets the description of the assertion that is going to be called after.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.Modifier and TypeMethodDescriptionstatic void
AbstractAssert.setDescriptionConsumer
(Consumer<Description> descriptionConsumer) static void
Assertions.setDescriptionConsumer
(Consumer<Description> descriptionConsumer) All assertions description will be consumed by the givenConsumer<Description>
allowing for example to record them in a file.static void
BDDAssertions.setDescriptionConsumer
(Consumer<Description> descriptionConsumer) All assertions description will be consumed by the givenConsumer<Description>
allowing for example to record them in a file.static void
WithAssertions.setDescriptionConsumer
(Consumer<Description> descriptionConsumer) All assertions description will be consumed by the givenConsumer<Description>
allowing for example to record them in a file. -
Uses of Description in org.assertj.core.condition
Modifier and TypeMethodDescriptionJoin.conditionDescriptionWithStatus
(T actual) MappedCondition.conditionDescriptionWithStatus
(FROM actual) Join.description()
-
Uses of Description in org.assertj.core.configuration
Modifier and TypeMethodDescriptionvoid
Configuration.setDescriptionConsumer
(Consumer<Description> descriptionConsumer) -
Uses of Description in org.assertj.core.description
Modifier and TypeClassDescriptionclass
A description containing empty text.class
TheDescription
combining multipleDescription
s.class
A text-based description that is evaluated lazily.class
A text-based description.Modifier and TypeMethodDescriptionstatic Description
EmptyTextDescription.emptyDescription()
static Description
Description.emptyIfNull
(Description description) Modifier and TypeMethodDescriptionstatic Description
Description.emptyIfNull
(Description description) static String
Description.mostRelevantDescription
(Description existingDescription, String newDescription) ModifierConstructorDescriptionJoinDescription
(String prefix, String suffix, Collection<Description> descriptions) Creates a new
.JoinDescription
-
Uses of Description in org.assertj.core.error
Modifier and TypeMethodDescriptionAbstractShouldHaveTextContent.create
(Description d, Representation representation) BasicErrorMessageFactory.create
(Description d) Creates a new error message as a result of a failed assertion withStandardRepresentation
.BasicErrorMessageFactory.create
(Description d, Representation representation) Creates a new error message as a result of a failed assertion.ErrorMessageFactory.create
(Description d) Creates a new error message as a result of a failed assertion withStandardRepresentation
.ErrorMessageFactory.create
(Description d, Representation p) Creates a new error message as a result of a failed assertion.protected String
ShouldBeEqual.defaultDetailedErrorMessage
(Description description, Representation representation) Builds and returns an error message from description usingShouldBeEqual.detailedExpected()
andShouldBeEqual.detailedActual()
detailed representation.DescriptionFormatter.format
(Description d) Formats the given
by surrounding its text value with square brackets and adding a space at the end.Description
MessageFormatter.format
(Description d, Representation p, String format, Object... args) Interprets a printf-style formatString
for failed assertion messages.AssertionErrorCreator.multipleAssertionsError
(Description description, List<? extends AssertionError> errors) AssertionErrorFactory.newAssertionError
(Description description, Representation representation) Creates an
.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).protected 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.ModifierConstructorDescriptionMultipleAssertionsError
(Description description, List<? extends AssertionError> errors)