Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.error | |
org.assertj.core.presentation | |
org.assertj.core.util |
Modifier and Type | Field and Description |
---|---|
private Representation |
WritableAssertionInfo.representation |
Modifier and Type | Method and Description |
---|---|
Representation |
WritableAssertionInfo.representation() |
Representation |
AssertionInfo.representation() |
Modifier and Type | Method and Description |
---|---|
void |
WritableAssertionInfo.useRepresentation(Representation newRepresentation) |
Modifier and Type | Field and Description |
---|---|
private Representation |
ShouldBeEqual.representation |
Modifier and Type | Method and Description |
---|---|
private java.lang.String |
MessageFormatter.asText(Representation p,
java.lang.Object o) |
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.
|
java.lang.String |
AbstractShouldHaveTextContent.create(Description d,
Representation representation) |
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 |
MessageFormatter.format(Description d,
Representation p,
java.lang.String format,
java.lang.Object... args)
Interprets a printf-style format
String for failed assertion messages. |
private java.lang.Object[] |
MessageFormatter.format(Representation p,
java.lang.Object[] args) |
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). |
java.lang.AssertionError |
AssertionErrorFactory.newAssertionError(Description d,
Representation representation)
Creates an
. |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy,
Representation representation)
Creates a new
. |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(java.lang.Object actual,
java.lang.Object expected,
Representation representation)
Creates a new
. |
Constructor and Description |
---|
ShouldBeEqual(java.lang.Object actual,
java.lang.Object expected,
ComparisonStrategy comparisonStrategy,
Representation representation) |
Modifier and Type | Class and Description |
---|---|
class |
BinaryRepresentation
Binary object representation instead of standard java representation.
|
class |
HexadecimalRepresentation
Hexadecimal object representation instead of standard java representation.
|
class |
StandardRepresentation
Standard java object representation.
|
class |
UnicodeRepresentation
Unicode object representation instead of standard java representation.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
DefaultToString.toStringOf(MapEntry<?,?> mapEntry,
Representation representation) |
private static java.lang.String |
StandardRepresentation.toStringOf(java.lang.Number number,
Representation representation) |
static java.lang.String |
DefaultToString.toStringOf(Representation representation,
java.lang.Object o)
Returns the
toString representation of the given group. |
private static java.lang.String |
HexadecimalRepresentation.toStringOf(Representation representation,
java.lang.String s) |
private static java.lang.String |
BinaryRepresentation.toStringOf(Representation representation,
java.lang.String s) |
static java.lang.String |
DefaultToString.toStringOf(Tuple tuple,
Representation representation) |
Modifier and Type | Method and Description |
---|---|
private static java.lang.Object |
Maps.format(java.util.Map<?,?> map,
java.lang.Object o,
Representation p) |
private static java.lang.String |
IterableUtil.format(Representation representation,
java.lang.Iterable<?> iterable,
java.lang.String start,
java.lang.String end,
java.lang.String elementSeparator,
java.lang.String indentation) |
static java.lang.String |
Maps.format(Representation p,
java.util.Map<?,?> map)
Returns the
String representation of the given map, or null if the given map is null . |
static java.lang.String |
Arrays.format(Representation representation,
java.lang.Object o)
Returns the
String representation of the given array, or null if the given object is either
null or not an array. |
private static java.lang.String |
Arrays.format(Representation representation,
java.lang.Object[] array,
java.lang.String elementSeparator,
java.lang.String indentation,
java.util.Set<java.lang.Object[]> alreadyFormatted) |
private static java.lang.String |
Arrays.formatPrimitiveArray(Representation representation,
java.lang.Object o) |
static java.lang.String |
IterableUtil.multiLineFormat(Representation representation,
java.lang.Iterable<?> iterable) |
private static java.lang.String |
Arrays.multiLineFormat(Representation representation,
java.lang.Object[] iterable,
java.util.Set<java.lang.Object[]> alreadyFormatted) |
static java.lang.String |
IterableUtil.singleLineFormat(Representation representation,
java.lang.Iterable<?> iterable,
java.lang.String start,
java.lang.String end) |
private static java.lang.String |
Arrays.singleLineFormat(Representation representation,
java.lang.Object[] iterable,
java.lang.String start,
java.lang.String end,
java.util.Set<java.lang.Object[]> alreadyFormatted) |
static java.lang.String |
IterableUtil.smartFormat(Representation representation,
java.lang.Iterable<?> iterable)
Returns the
String representation of the given Iterable , or null if the given
Iterable is null . |
private static java.lang.String |
Arrays.smartFormat(Representation representation,
java.lang.Object[] iterable) |