Class TestExecutionResultConditions
java.lang.Object
org.junit.platform.testkit.engine.TestExecutionResultConditions
@API(status=MAINTAINED,
since="1.7")
public final class TestExecutionResultConditions
extends Object
Collection of AssertJ conditions for
TestExecutionResult
.- Since:
- 1.4
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static org.assertj.core.api.Condition
<Throwable> static org.assertj.core.api.Condition
<Throwable> static org.assertj.core.api.Condition
<Throwable> instanceOf
(Class<? extends Throwable> expectedType) Create a newCondition
that matches if and only if aThrowable
is an instance of the suppliedClass
.static org.assertj.core.api.Condition
<Throwable> static org.assertj.core.api.Condition
<Throwable> static org.assertj.core.api.Condition
<TestExecutionResult> status
(TestExecutionResult.Status expectedStatus) Create a newCondition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
.private static org.assertj.core.api.Condition
<Throwable> suppressed
(int index, org.assertj.core.api.Condition<Throwable> condition) static org.assertj.core.api.Condition
<Throwable> suppressed
(int index, org.assertj.core.api.Condition<Throwable>... conditions) Create a newCondition
that matches if and only if aThrowable
's suppressed throwable at the supplied index matches all supplied conditions.private static org.assertj.core.api.Condition
<TestExecutionResult> static org.assertj.core.api.Condition
<TestExecutionResult> Create a newCondition
that matches if and only if aTestExecutionResult
's throwable matches all supplied conditions.
-
Constructor Details
-
TestExecutionResultConditions
private TestExecutionResultConditions()
-
-
Method Details
-
status
public static org.assertj.core.api.Condition<TestExecutionResult> status(TestExecutionResult.Status expectedStatus) Create a newCondition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
. -
throwable
@SafeVarargs public static org.assertj.core.api.Condition<TestExecutionResult> throwable(org.assertj.core.api.Condition<Throwable>... conditions) Create a newCondition
that matches if and only if aTestExecutionResult
's throwable matches all supplied conditions. -
cause
@SafeVarargs public static org.assertj.core.api.Condition<Throwable> cause(org.assertj.core.api.Condition<Throwable>... conditions) -
suppressed
@SafeVarargs public static org.assertj.core.api.Condition<Throwable> suppressed(int index, org.assertj.core.api.Condition<Throwable>... conditions) Create a newCondition
that matches if and only if aThrowable
's suppressed throwable at the supplied index matches all supplied conditions. -
instanceOf
public static org.assertj.core.api.Condition<Throwable> instanceOf(Class<? extends Throwable> expectedType) Create a newCondition
that matches if and only if aThrowable
is an instance of the suppliedClass
. -
message
-
message
-
throwable
private static org.assertj.core.api.Condition<TestExecutionResult> throwable(org.assertj.core.api.Condition<? super Throwable> condition) -
cause
-
suppressed
-