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. |
ThrowableAssert |
ThrowableAssert.as(String description)
Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails. |
static ThrowableAssert |
Assertions.assertThat(Throwable actual)
Creates a new instance of
. |
ThrowableAssert |
ThrowableAssert.describedAs(Description description)
Alias for
, since "as" is a keyword in
Groovy. |
ThrowableAssert |
ThrowableAssert.describedAs(String description)
Alias for
, since "as" is a keyword in
Groovy. |
ThrowableAssert |
ThrowableAssert.hasMessage(String message)
Verifies that the message of the actual
Throwable is equal to the given one. |
ThrowableAssert |
ThrowableAssert.hasNoCause()
Verifies that the actual
Throwable does not have a cause. |
ThrowableAssert |
ThrowableAssert.isExactlyInstanceOf(Class<?> type)
Verifies that the actual
Throwable is an instance of the given type. |
ThrowableAssert |
ThrowableAssert.isInstanceOf(Class<? extends Throwable> type)
Verifies that the actual
Throwable is an instance of the given type. |
ThrowableAssert |
ThrowableAssert.overridingErrorMessage(String message)
Replaces the default message displayed in case of a failure with the given one.
|
Copyright © 2007-2012 FEST (Fixtures for Easy Software Testing). All Rights Reserved.