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 anythrown when an assertion fails.AssertionErrorThrowableAssert.as(Description description) Sets the description of the actual value, to be used in as message of anythrown when an assertion fails.AssertionErrorstatic ThrowableAssertAssertions.assertThat(Throwable actual) Creates a new instance of.ThrowableAssertThrowableAssert.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 actualThrowabledoes not satisfy the given condition.ThrowableAssert.hasMessage(String message) Verifies that the message of the actualThrowableis equal to the given one.ThrowableAssert.hasNoCause()Verifies that the actualThrowabledoes not have a cause.Alias for.satisfies(Condition)Verifies that the actualThrowableis equal to the given one.ThrowableAssert.isExactlyInstanceOf(Class<?> type) Verifies that the actualThrowableis an instance of the given type.ThrowableAssert.isInstanceOf(Class<? extends Throwable> type) Verifies that the actualThrowableis an instance of the given type.Alias for.doesNotSatisfy(Condition)ThrowableAssert.isNotEqualTo(Throwable other) Verifies that the actualThrowableis not equal to the given one.ThrowableAssert.isNotNull()Verifies that the actualThrowableis notnull.ThrowableAssert.isNotSameAs(Throwable other) Verifies that the actualThrowableis not the same as the given one.Verifies that the actualThrowableis 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 actualThrowablesatisfies the given condition.