@API(status=MAINTAINED,
since="1.7")
public final class TestExecutionResultConditions
extends java.lang.Object
TestExecutionResult.EventConditions| Modifier | Constructor and Description |
|---|---|
private |
TestExecutionResultConditions() |
| Modifier and Type | Method and Description |
|---|---|
static org.assertj.core.api.Condition<java.lang.Throwable> |
cause(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Create a new
Condition that matches if and only if a
Throwable's cause matches all
supplied conditions. |
private static org.assertj.core.api.Condition<java.lang.Throwable> |
cause(org.assertj.core.api.Condition<java.lang.Throwable> condition) |
static org.assertj.core.api.Condition<java.lang.Throwable> |
instanceOf(java.lang.Class<? extends java.lang.Throwable> expectedType)
Create a new
Condition that matches if and only if a
Throwable is an instance of
the supplied Class. |
static org.assertj.core.api.Condition<java.lang.Throwable> |
message(java.util.function.Predicate<java.lang.String> expectedMessagePredicate)
Create a new
Condition that matches if and only if a
Throwable's message matches
the supplied Predicate. |
static org.assertj.core.api.Condition<java.lang.Throwable> |
message(java.lang.String expectedMessage)
Create a new
Condition that matches if and only if a
Throwable's message is equal
to the supplied String. |
static org.assertj.core.api.Condition<TestExecutionResult> |
status(TestExecutionResult.Status expectedStatus)
Create a new
Condition that matches if and only if a
TestExecutionResult's status is equal to the supplied Status. |
static org.assertj.core.api.Condition<java.lang.Throwable> |
suppressed(int index,
org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Create a new
Condition that matches if and only if a
Throwable's suppressed
throwable at the supplied index matches all supplied conditions. |
private static org.assertj.core.api.Condition<java.lang.Throwable> |
suppressed(int index,
org.assertj.core.api.Condition<java.lang.Throwable> condition) |
private static org.assertj.core.api.Condition<TestExecutionResult> |
throwable(org.assertj.core.api.Condition<? super java.lang.Throwable> condition) |
static org.assertj.core.api.Condition<TestExecutionResult> |
throwable(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Create a new
Condition that matches if and only if a
TestExecutionResult's
throwable matches all
supplied conditions. |
public static org.assertj.core.api.Condition<TestExecutionResult> status(TestExecutionResult.Status expectedStatus)
Condition that matches if and only if a
TestExecutionResult's status is equal to the supplied Status.@SafeVarargs public static org.assertj.core.api.Condition<TestExecutionResult> throwable(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Condition that matches if and only if a
TestExecutionResult's
throwable matches all
supplied conditions.@SafeVarargs public static org.assertj.core.api.Condition<java.lang.Throwable> cause(org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Condition that matches if and only if a
Throwable's cause matches all
supplied conditions.@SafeVarargs
public static org.assertj.core.api.Condition<java.lang.Throwable> suppressed(int index,
org.assertj.core.api.Condition<java.lang.Throwable>... conditions)
Condition that matches if and only if a
Throwable's suppressed
throwable at the supplied index matches all supplied conditions.public static org.assertj.core.api.Condition<java.lang.Throwable> instanceOf(java.lang.Class<? extends java.lang.Throwable> expectedType)
Condition that matches if and only if a
Throwable is an instance of
the supplied Class.public static org.assertj.core.api.Condition<java.lang.Throwable> message(java.lang.String expectedMessage)
Condition that matches if and only if a
Throwable's message is equal
to the supplied String.public static org.assertj.core.api.Condition<java.lang.Throwable> message(java.util.function.Predicate<java.lang.String> expectedMessagePredicate)
Condition that matches if and only if a
Throwable's message matches
the supplied Predicate.private static org.assertj.core.api.Condition<TestExecutionResult> throwable(org.assertj.core.api.Condition<? super java.lang.Throwable> condition)
private static org.assertj.core.api.Condition<java.lang.Throwable> cause(org.assertj.core.api.Condition<java.lang.Throwable> condition)
private static org.assertj.core.api.Condition<java.lang.Throwable> suppressed(int index,
org.assertj.core.api.Condition<java.lang.Throwable> condition)