Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.description | |
org.assertj.core.error |
Modifier and Type | Field and Description |
---|---|
(package private) Description |
Condition.description |
private Description |
WritableAssertionInfo.description |
Modifier and Type | Method and 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.
|
Modifier and Type | Method and Description |
---|---|
SELF |
AbstractAssert.as(Description description)
Sets the description of the assertion that is going to be called after.
|
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) |
Condition<T> |
Condition.as(Description newDescription)
Sets the description of the assertion that is going to be called after.
|
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.
|
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
Condition . |
Modifier and Type | Class and Description |
---|---|
class |
EmptyTextDescription
A description containing empty text.
|
class |
TextDescription
A text-based description.
|
Modifier and Type | Field and Description |
---|---|
private static Description |
EmptyTextDescription.INSTANCE |
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 java.lang.String |
Description.mostRelevantDescription(Description existingDescription,
java.lang.String newDescription) |
Modifier and Type | Method and Description |
---|---|
private java.lang.AssertionError |
ShouldBeEqual.comparisonFailure(Description description) |
java.lang.String |
BasicErrorMessageFactory.create(Description d)
Creates a new error message as a result of a failed assertion with
StandardRepresentation . |
java.lang.String |
ErrorMessageFactory.create(Description d)
Creates a new error message as a result of a failed assertion with
StandardRepresentation . |
java.lang.String |
AbstractShouldHaveTextContent.create(Description d,
Representation representation) |
java.lang.String |
BasicErrorMessageFactory.create(Description d,
Representation representation)
Creates a new error message as a result of a failed assertion.
|
java.lang.String |
ErrorMessageFactory.create(Description d,
Representation p)
Creates a new error message as a result of a failed assertion.
|
private java.lang.String |
ShouldBeEqual.defaultDetailedErrorMessage(Description description,
Representation representation)
Builds and returns an error message from description using
ShouldBeEqual.detailedExpected() and
ShouldBeEqual.detailedActual() detailed representation. |
private java.lang.String |
ShouldBeEqual.defaultErrorMessage(Description description,
Representation representation)
Builds and returns an error message from description using
ShouldBeEqual.expected and ShouldBeEqual.actual basic
representation. |
java.lang.String |
DescriptionFormatter.format(Description d)
Formats the given
by surrounding its text value with square brackets and adding a space at
the end. |
java.lang.String |
MessageFormatter.format(Description d,
Representation p,
java.lang.String format,
java.lang.Object... args)
Interprets a printf-style format
String for failed assertion messages. |
java.lang.AssertionError |
AssertionErrorFactory.newAssertionError(Description d,
Representation representation)
Creates an
. |
java.lang.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). |