| Package | Description |
|---|---|
| org.assertj.core.api | |
| org.assertj.core.condition | |
| org.assertj.core.configuration | |
| org.assertj.core.description | |
| org.assertj.core.error |
| Modifier and Type | Field and Description |
|---|---|
protected Description |
ThrowableTypeAssert.description |
protected Description |
NotThrownAssert.description |
| Modifier and Type | Method and Description |
|---|---|
Description |
Condition.conditionDescriptionWithStatus(T actual)
Returns the description of this condition with its status failed or success.
|
Description |
WritableAssertionInfo.description()
Returns the description of an assertion.
|
Description |
Condition.description()
Returns the description of this condition.
|
Description |
AssertionInfo.description()
Returns the description of an assertion.
|
| Modifier and Type | Method and Description |
|---|---|
ThrowableAssertAlternative<ACTUAL> |
ThrowableAssertAlternative.as(Description description) |
SoftThrowableAssertAlternative<ACTUAL> |
SoftThrowableAssertAlternative.as(Description description) |
default SELF |
Descriptable.as(Description description)
Sets the description of the assertion that is going to be called after.
|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.as(Description description) |
SELF |
AbstractObjectAssert.as(Description description) |
SELF |
AbstractObjectArrayAssert.as(Description description) |
SELF |
AbstractMapAssert.as(Description description) |
SELF |
AbstractListAssert.as(Description description) |
SELF |
AbstractIterableAssert.as(Description description) |
ThrowableTypeAssert<T> |
ThrowableTypeAssert.describedAs(Description description)
Sets the description of the assertion that is going to be called after.
|
ThrowableAssertAlternative<ACTUAL> |
ThrowableAssertAlternative.describedAs(Description description)
Sets the description of the assertion that is going to be called after.
|
SoftThrowableTypeAssert<T> |
SoftThrowableTypeAssert.describedAs(Description description) |
NotThrownAssert |
NotThrownAssert.describedAs(Description description)
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.
|
Condition<T> |
Condition.describedAs(Description newDescription)
Sets the description of the assertion that is going to be called after.
|
SELF |
AbstractMapAssert.describedAs(Description description) |
SELF |
AbstractListAssert.describedAs(Description description) |
SELF |
AbstractIterableAssert.describedAs(Description description) |
SELF |
AbstractAssert.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 empty
Description is set. |
| Modifier and Type | Method and Description |
|---|---|
static void |
WithAssertions.setDescriptionConsumer(Consumer<Description> descriptionConsumer)
All assertions description will be consumed by the given
Consumer<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 given
Consumer<Description> allowing for example to record them in a file. |
static void |
Assertions.setDescriptionConsumer(Consumer<Description> descriptionConsumer)
All assertions description will be consumed by the given
Consumer<Description> allowing for example to record them in a file. |
static void |
AbstractAssert.setDescriptionConsumer(Consumer<Description> descriptionConsumer) |
| Constructor and Description |
|---|
Condition(Description description)
Creates a new
. |
| Modifier and Type | Method and Description |
|---|---|
Description |
MappedCondition.conditionDescriptionWithStatus(FROM actual) |
Description |
Join.conditionDescriptionWithStatus(T actual) |
Description |
Join.description() |
| Modifier and Type | Method and Description |
|---|---|
Consumer<Description> |
Configuration.descriptionConsumer() |
| Modifier and Type | Method and Description |
|---|---|
void |
Configuration.setDescriptionConsumer(Consumer<Description> descriptionConsumer) |
| Modifier and Type | Class and Description |
|---|---|
class |
EmptyTextDescription
A description containing empty text.
|
class |
JoinDescription
The
Description combining multiple Descriptions. |
class |
LazyTextDescription
A text-based description that is evaluated lazily.
|
class |
TextDescription
A text-based description.
|
| Modifier and Type | Method and Description |
|---|---|
static Description |
EmptyTextDescription.emptyDescription() |
static Description |
Description.emptyIfNull(Description description) |
| Modifier and Type | Method and Description |
|---|---|
static Description |
Description.emptyIfNull(Description description) |
static String |
Description.mostRelevantDescription(Description existingDescription,
String newDescription) |
| Constructor and Description |
|---|
JoinDescription(String prefix,
String suffix,
Collection<Description> descriptions)
Creates a new
. |
| Modifier and Type | Method and Description |
|---|---|
String |
ErrorMessageFactory.create(Description d)
Creates a new error message as a result of a failed assertion with
StandardRepresentation. |
String |
BasicErrorMessageFactory.create(Description d)
Creates a new error message as a result of a failed assertion with
StandardRepresentation. |
String |
ErrorMessageFactory.create(Description d,
Representation p)
Creates a new error message as a result of a failed assertion.
|
String |
BasicErrorMessageFactory.create(Description d,
Representation representation)
Creates a new error message as a result of a failed assertion.
|
String |
AbstractShouldHaveTextContent.create(Description d,
Representation representation) |
protected String |
ShouldBeEqual.defaultDetailedErrorMessage(Description description,
Representation representation)
Builds and returns an error message from description using
ShouldBeEqual.detailedExpected() and
ShouldBeEqual.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. |
String |
MessageFormatter.format(Description d,
Representation p,
String format,
Object... args)
Interprets a printf-style format
String for failed assertion messages. |
AssertionError |
AssertionErrorCreator.multipleAssertionsError(Description description,
List<? extends AssertionError> errors) |
AssertionError |
ShouldBeEqual.newAssertionError(Description description,
Representation representation)
Creates an
indicating that an assertion that verifies that two objects are
equal failed.The message is built so that it differentiates ShouldBeEqual.actual and
ShouldBeEqual.expected description in case their string representation are the same (like 42 float and 42 double). |
AssertionError |
AssertionErrorFactory.newAssertionError(Description description,
Representation representation)
Creates an
. |
protected String |
ShouldBeEqual.smartErrorMessage(Description description,
Representation representation)
Builds and returns an error message from the given description using
ShouldBeEqual.expected and ShouldBeEqual.actual basic
representation if their description differ otherwise use
ShouldBeEqual.defaultDetailedErrorMessage(Description, Representation) to represent them differently. |
| Constructor and Description |
|---|
MultipleAssertionsError(Description description,
List<? extends AssertionError> errors) |
Copyright © 2025. All rights reserved.