ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.describedAs(String description,
Object... args) |
Sets the description of the assertion that is going to be called after.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.describedAs(Description description) |
Sets the description of the assertion that is going to be called after.
|
ThrowableAssertAlternative<?> |
ThrowableAssertAlternative.havingCause() |
Checks if the actual Throwable has a cause and returns a new assertion object where the
cause becomes the actual Throwable in order to further assert properties of the cause Throwable
|
ThrowableAssertAlternative<?> |
ThrowableAssertAlternative.havingRootCause() |
Checks if the actual Throwable has a root cause and returns a new assertion object where the
root cause becomes the actual Throwable in order to further assert properties of the cause Throwable
|
ThrowableAssertAlternative<T> |
ThrowableTypeAssert.isThrownBy(ThrowableAssert.ThrowingCallable throwingCallable) |
Assert that an exception of type T is thrown by the throwingCallable
and allow to chain assertions on the thrown exception.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withCause(Throwable cause) |
Verifies that the actual Throwable has a cause similar to the given one, that is with same type and message
(it does not use equals method for comparison).
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withCauseExactlyInstanceOf(Class<? extends Throwable> type) |
Verifies that the cause of the actual Throwable is exactly an instance of the given type.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withCauseInstanceOf(Class<? extends Throwable> type) |
Verifies that the cause of the actual Throwable is an instance of the given type.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessage(String message) |
Verifies that the message of the actual Throwable is equal to the given one.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessage(String message,
Object... parameters) |
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageContaining(String description) |
Verifies that the message of the actual Throwable contains the given description.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageContaining(String description,
Object... parameters) |
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageContainingAll(CharSequence... values) |
Verifies that the message of the actual Throwable contains all the given values.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageEndingWith(String description) |
Verifies that the message of the actual Throwable ends with the given description.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageEndingWith(String description,
Object... parameters) |
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageMatching(String regex) |
Verifies that the message of the actual Throwable matches with the given regular expression.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageNotContaining(String content) |
Verifies that the message of the actual Throwable does not contain the given content or is null.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageNotContainingAny(CharSequence... values) |
Verifies that the message of the actual Throwable does not contain any of the given values or is null .
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageStartingWith(String description) |
Verifies that the message of the actual Throwable starts with the given description.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageStartingWith(String description,
Object... parameters) |
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withNoCause() |
Verifies that the actual Throwable does not have a cause.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withRootCauseExactlyInstanceOf(Class<? extends Throwable> type) |
Verifies that the root cause of the actual Throwable is exactly an instance of the given type.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withRootCauseInstanceOf(Class<? extends Throwable> type) |
Verifies that the root cause of the actual Throwable is an instance of the given type.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withStackTraceContaining(String description) |
Verifies that the stack trace of the actual Throwable contains with the given description.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withStackTraceContaining(String description,
Object... parameters) |
|
ThrowableAssertAlternative<?> |
WithThrowable.withThrowableOfType(Class<? extends Throwable> type) |
Checks that the underlying throwable is of the given type and returns a ThrowableAssertAlternative to chain
further assertions on the underlying throwable.
|