Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.description | |
org.assertj.core.error |
Modifier and Type | Method and Description |
---|---|
Description |
Condition.description()
Returns the description of this condition.
|
Description |
AssertionInfo.description()
Returns the description of an assertion.
|
Description |
WritableAssertionInfo.description()
Returns the description of an assertion.
|
Modifier and Type | Method and Description |
---|---|
S |
AbstractAssert.as(Description description)
Sets the description of this object.
|
Condition<T> |
Condition.as(Description newDescription)
Sets the description of this object.
|
S |
Descriptable.as(Description description)
Sets the description of this object.
|
S |
AbstractAssert.describedAs(Description description)
Alias for
since "as" is a keyword in Groovy. |
Condition<T> |
Condition.describedAs(Description newDescription)
Alias for
since "as" is a keyword in Groovy. |
S |
Descriptable.describedAs(Description description)
Alias for
since "as" is a keyword in Groovy. |
void |
WritableAssertionInfo.description(Description newDescription)
Sets the description of an assertion.
|
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 | Method and Description |
---|---|
static Description |
EmptyTextDescription.emptyText() |
Modifier and Type | Method and Description |
---|---|
String |
BasicErrorMessageFactory.create(Description d)
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.
|
String |
AbstractShouldHaveTextContent.create(Description d) |
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,
String format,
Object... args)
Interprets a printf-style format
String for failed assertion messages. |
AssertionError |
AssertionErrorFactory.newAssertionError(Description d)
Creates an
. |
AssertionError |
ShouldBeEqual.newAssertionError(Description description)
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). |
Copyright © 2013 AssertJ. All Rights Reserved.