Package | Description |
---|---|
org.assertj.core.api |
Modifier and Type | Method and Description |
---|---|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.describedAs(Description description)
Sets the description of the assertion that is going to be called after.
|
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.describedAs(java.lang.String description,
java.lang.Object... args)
Sets the description of the assertion that is going to be called after.
|
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(java.lang.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(java.lang.Class<? extends java.lang.Throwable> type)
Verifies that the cause of the actual
Throwable is exactly an instance of the given type. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withCauseInstanceOf(java.lang.Class<? extends java.lang.Throwable> type)
Verifies that the cause of the actual
Throwable is an instance of the given type. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessage(java.lang.String message)
Verifies that the message of the actual
Throwable is equal to the given one. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessage(java.lang.String message,
java.lang.Object... parameters)
Verifies that the message of the actual
Throwable is equal to the given one built using String.format(String, Object...) syntax. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageContaining(java.lang.String description)
Verifies that the message of the actual
Throwable contains the given description. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageContainingAll(java.lang.CharSequence... values)
Verifies that the message of the actual
Throwable contains all the given values. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageEndingWith(java.lang.String description)
Verifies that the message of the actual
Throwable ends with the given description. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageMatching(java.lang.String regex)
Verifies that the message of the actual
Throwable matches with the given regular expression. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageNotContaining(java.lang.String content)
Verifies that the message of the actual
Throwable does not contain the given content or is null. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withMessageNotContainingAny(java.lang.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(java.lang.String description)
Verifies that the message of the actual
Throwable starts with the given description. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withNoCause()
Verifies that the actual
Throwable does not have a cause. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withRootCauseExactlyInstanceOf(java.lang.Class<? extends java.lang.Throwable> type)
Verifies that the root cause of the actual
Throwable is exactly an instance of the given type. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withRootCauseInstanceOf(java.lang.Class<? extends java.lang.Throwable> type)
Verifies that the root cause of the actual
Throwable is an instance of the given type. |
ThrowableAssertAlternative<T> |
ThrowableAssertAlternative.withStackTraceContaining(java.lang.String description)
Verifies that the stack trace of the actual
Throwable contains with the given description. |