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 |
---|---|
void |
WritableAssertionInfo.useRepresentation(Representation newRepresentation) |
Modifier and Type | Method and Description |
---|---|
String |
AbstractShouldHaveTextContent.create(Description d,
Representation representation) |
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 |
MessageFormatter.format(Description d,
Representation p,
String format,
Object... args)
Interprets a printf-style format
String for failed assertion messages. |
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
. |
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
. |
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 String |
DefaultToString.toStringOf(MapEntry<?,?> mapEntry,
Representation representation) |
static String |
DefaultToString.toStringOf(Representation representation,
Object o)
Returns the
toString representation of the given group. |
static String |
DefaultToString.toStringOf(Tuple tuple,
Representation representation) |
Modifier and Type | Method and Description |
---|---|
static String |
IterableUtil.format(Representation representation,
Iterable<?> iterable,
String start,
String end,
String elementSeparator,
String indentation) |
static String |
Maps.format(Representation p,
Map<?,?> map)
Returns the
String representation of the given map, or null if the given map is null . |
static String |
Arrays.format(Representation representation,
Object o)
Returns the
String representation of the given array, or null if the given object is either
null or not an array. |
static String |
IterableUtil.multiLineFormat(Representation representation,
Iterable<?> iterable) |
static String |
IterableUtil.singleLineFormat(Representation representation,
Iterable<?> iterable,
String start,
String end) |
static String |
IterableUtil.smartFormat(Representation representation,
Iterable<?> iterable)
Returns the
String representation of the given Iterable , or null if the given
Iterable is null . |
Copyright © 2013–2016 AssertJ. All rights reserved.