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