Uses of Class
org.fest.assertions.ThrowableAssert
-
Uses of ThrowableAssert in org.fest.assertions
Methods in org.fest.assertions that return ThrowableAssertModifier and TypeMethodDescriptionSets the description of the actual value, to be used in as message of any
thrown when an assertion fails.AssertionError
ThrowableAssert.as
(Description description) Sets the description of the actual value, to be used in as message of any
thrown when an assertion fails.AssertionError
static ThrowableAssert
Assertions.assertThat
(Throwable actual) Creates a new instance of
.ThrowableAssert
ThrowableAssert.describedAs
(String description) Alias for
, since "as" is a keyword in Groovy.GenericAssert.as(String)
ThrowableAssert.describedAs
(Description description) Alias for
, since "as" is a keyword in Groovy.GenericAssert.as(Description)
ThrowableAssert.doesNotSatisfy
(Condition<Throwable> condition) Verifies that the actualThrowable
does not satisfy the given condition.ThrowableAssert.hasMessage
(String message) Verifies that the message of the actualThrowable
is equal to the given one.ThrowableAssert.hasNoCause()
Verifies that the actualThrowable
does not have a cause.Alias for
.satisfies(Condition)
Verifies that the actualThrowable
is equal to the given one.ThrowableAssert.isExactlyInstanceOf
(Class<?> type) Verifies that the actualThrowable
is an instance of the given type.ThrowableAssert.isInstanceOf
(Class<? extends Throwable> type) Verifies that the actualThrowable
is an instance of the given type.Alias for
.doesNotSatisfy(Condition)
ThrowableAssert.isNotEqualTo
(Throwable other) Verifies that the actualThrowable
is not equal to the given one.ThrowableAssert.isNotNull()
Verifies that the actualThrowable
is notnull
.ThrowableAssert.isNotSameAs
(Throwable other) Verifies that the actualThrowable
is not the same as the given one.Verifies that the actualThrowable
is the same as the given one.ThrowableAssert.overridingErrorMessage
(String message) Replaces the default message displayed in case of a failure with the given one.Verifies that the actualThrowable
satisfies the given condition.