Module org.junit.platform.testkit
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:
-
Method Summary
Modifier and TypeMethodDescriptioninstanceOf
(Class<? extends Throwable> expectedType) Create a newCondition
that matches if and only if aThrowable
is an instance of the suppliedClass
.static Condition<TestExecutionResult>
status
(TestExecutionResult.Status expectedStatus) Create a newCondition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
.suppressed
(int index, Condition<Throwable>... conditions) Create a newCondition
that matches if and only if aThrowable
's suppressed throwable at the supplied index matches all supplied conditions.static Condition<TestExecutionResult>
Create a newCondition
that matches if and only if aTestExecutionResult
's throwable matches all supplied conditions.
-
Method Details
-
status
Create a newCondition
that matches if and only if aTestExecutionResult
's status is equal to the suppliedStatus
. -
throwable
@SafeVarargs public static Condition<TestExecutionResult> throwable(Condition<Throwable>... conditions) Create a newCondition
that matches if and only if aTestExecutionResult
's throwable matches all supplied conditions. -
cause
-
suppressed
@SafeVarargs public static Condition<Throwable> suppressed(int index, 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
Create a newCondition
that matches if and only if aThrowable
is an instance of the suppliedClass
. -
message
-
message
-