Package | Description |
---|---|
org.assertj.core.api | |
org.assertj.core.error | |
org.assertj.core.presentation | |
org.assertj.core.util |
Modifier and Type | Method and Description |
---|---|
Representation |
AssertionInfo.representation() |
Representation |
WritableAssertionInfo.representation() |
Modifier and Type | Method and Description |
---|---|
static void |
AbstractAssert.setCustomRepresentation(Representation customRepresentation) |
static void |
Assertions.useRepresentation(Representation customRepresentation)
Register a
Representation that will be used in all following assertions. |
void |
WritableAssertionInfo.useRepresentation(Representation newRepresentation) |
SELF |
AbstractAssert.withRepresentation(Representation representation)
Use the given
Representation to describe/represent values in AssertJ error messages. |
SELF |
Assert.withRepresentation(Representation representation)
Use the given
Representation to describe/represent values in AssertJ error messages. |
Constructor and Description |
---|
WritableAssertionInfo(Representation customRepresentation) |
Modifier and Type | Method and Description |
---|---|
String |
AbstractShouldHaveTextContent.create(Description d,
Representation representation) |
String |
BasicErrorMessageFactory.create(Description d,
Representation representation)
Creates a new error message as a result of a failed assertion.
|
String |
ErrorMessageFactory.create(Description d,
Representation p)
Creates a new error message as a result of a failed assertion.
|
String |
MessageFormatter.format(Description d,
Representation p,
String format,
Object... args)
Interprets a printf-style format
String for failed assertion messages. |
AssertionError |
AssertionErrorFactory.newAssertionError(Description d,
Representation representation)
Creates an
. |
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). |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(Object actual,
Object expected,
ComparisonStrategy comparisonStrategy,
Representation representation)
Creates a new
. |
static AssertionErrorFactory |
ShouldBeEqual.shouldBeEqual(Object actual,
Object expected,
Representation representation)
Creates a new
. |
static ErrorMessageFactory |
ShouldBeEqualByComparingFieldByFieldRecursively.shouldBeEqualByComparingFieldByFieldRecursive(Object actual,
Object other,
List<DeepDifference.Difference> differences,
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 |
---|---|
protected String |
StandardRepresentation.multiLineFormat(Representation representation,
Object[] iterable,
Set<Object[]> alreadyFormatted) |
protected String |
StandardRepresentation.singleLineFormat(Representation representation,
Object[] iterable,
String start,
String end,
Set<Object[]> alreadyFormatted) |
protected String |
StandardRepresentation.smartFormat(Representation representation,
Object[] iterable) |
protected String |
BinaryRepresentation.toStringOf(Representation representation,
String s) |
protected String |
HexadecimalRepresentation.toStringOf(Representation representation,
String s) |
Modifier and Type | Method and Description |
---|---|
static String |
Maps.format(Representation p,
Map<?,?> map)
Deprecated.
use
StandardRepresentation.toStringOf(Map) instead. |
Copyright © 2014–2024. All rights reserved.