Modifier and Type | Class and Description |
---|---|
class |
BasicDescription
Default implementation of
. |
Modifier and Type | Method and Description |
---|---|
protected Description |
Assert.rawDescription()
Returns the description of the actual value in this assertion.
|
Modifier and Type | Method and Description |
---|---|
ThrowableAssert |
ThrowableAssert.as(Description description)
Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails. |
S |
GenericAssert.as(Description description)
Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails. |
protected static AssertionError |
Fail.comparisonFailed(Description description,
Object actual,
Object expected)
Returns a
describing a comparison failure. |
ThrowableAssert |
ThrowableAssert.describedAs(Description description)
Alias for
, since "as" is a keyword in
Groovy. |
S |
GenericAssert.describedAs(Description description)
Alias for
, since "as" is a keyword in
Groovy. |
protected void |
Assert.description(Description d)
Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails. |
protected static void |
Fail.failIfActualIsNull(String customErrorMessage,
Description description,
Object actual)
Throws an
if the actual value is null . |
protected static void |
Fail.failIfEqual(String customErrorMessage,
Description descriptionOfActual,
Object actual,
Object other)
Throws an
if the given objects are equal. |
protected static void |
Fail.failIfNotEqual(String customErrorMessage,
Description descriptionOfActual,
Object actual,
Object expected)
Throws an
if 'actual' is not equal to 'expected'. |
protected static void |
Fail.failIfNotNull(String customErrorMessage,
Description description,
Object o)
Throws an
if the given object is not null . |
protected static void |
Fail.failIfNotSame(String customErrorMessage,
Description descriptionOfActual,
Object actual,
Object other)
Throws an
if the given objects are not the same. |
protected static void |
Fail.failIfNull(String customErrorMessage,
Description description,
Object o)
Throws an
if the given object is null . |
protected static void |
Fail.failIfSame(String customErrorMessage,
Description descriptionOfActual,
Object actual,
Object other)
Throws an
if the given objects are the same. |
static String |
Formatting.format(Description description,
String message)
Returns the given message formatted as follows:
|
static String |
Formatting.valueOf(Description description)
Returns the value of the given
. |
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.