Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.description | |
org.assertj.core.error |
Modifier and Type | Field and Description |
---|---|
protected Description |
ThrowableTypeAssert.description |
Modifier and Type | Method and Description |
---|---|
Description |
AssertionInfo.description()
Returns the description of an assertion.
|
Description |
WritableAssertionInfo.description()
Returns the description of an assertion.
|
Description |
Condition.description()
Returns the description of this condition.
|
Modifier and Type | Method and Description |
---|---|
AtomicReferenceArrayAssert<T> |
AtomicReferenceArrayAssert.as(Description description) |
SELF |
AbstractIterableAssert.as(Description description) |
SELF |
Descriptable.as(Description description)
Sets the description of the assertion that is going to be called after.
|
SELF |
AbstractObjectAssert.as(Description description) |
SELF |
AbstractAssert.as(Description description)
Sets the description of the assertion that is going to be called after.
|
SELF |
AbstractObjectArrayAssert.as(Description description) |
SELF |
AbstractListAssert.as(Description description) |
SELF |
AbstractMapAssert.as(Description description) |
ThrowableTypeAssert<T> |
ThrowableTypeAssert.as(Description description)
Sets the description of the assertion that is going to be called after.
|
Condition<T> |
Condition.as(Description newDescription)
Sets the description of the assertion that is going to be called after.
|
SELF |
AbstractIterableAssert.describedAs(Description description) |
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.
|
SELF |
AbstractAssert.describedAs(Description description)
Sets the description of the assertion that is going to be called after.
|
SELF |
AbstractListAssert.describedAs(Description description) |
SELF |
AbstractMapAssert.describedAs(Description description) |
ThrowableTypeAssert<T> |
ThrowableTypeAssert.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.
|
void |
WritableAssertionInfo.description(Description newDescription)
Sets the description of an assertion, if given null an empty
Description is set. |
Constructor and Description |
---|
Condition(Description description)
Creates a new
. |
Modifier and Type | Class and Description |
---|---|
class |
EmptyTextDescription
A description containing empty text.
|
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) |
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) |
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 d,
Representation representation)
Creates an
. |
Constructor and Description |
---|
MultipleAssertionsError(Description description,
List<? extends AssertionError> errors) |
Copyright © 2014–2019 AssertJ. All rights reserved.