Module org.junit.jupiter.engine
Package org.junit.jupiter.engine.support
Class OpenTest4JAndJUnit4AwareThrowableCollector
- java.lang.Object
-
- org.junit.platform.engine.support.hierarchical.ThrowableCollector
-
- org.junit.jupiter.engine.support.OpenTest4JAndJUnit4AwareThrowableCollector
-
class OpenTest4JAndJUnit4AwareThrowableCollector extends ThrowableCollector
Specialization ofThrowableCollector
that treats instances of the OTA'sTestAbortedException
and JUnit 4'sorg.junit.AssumptionViolatedException
as aborting.- Since:
- 5.4
- See Also:
ThrowableCollector
,OpenTest4JAwareThrowableCollector
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.junit.platform.engine.support.hierarchical.ThrowableCollector
ThrowableCollector.Executable, ThrowableCollector.Factory
-
-
Field Summary
Fields Modifier and Type Field Description private static java.util.function.Predicate<? super java.lang.Throwable>
abortedExecutionPredicate
private static java.lang.String
ASSUMPTION_VIOLATED_EXCEPTION
private static java.lang.String
COMMON_FAILURE_MESSAGE
private static Logger
logger
-
Constructor Summary
Constructors Constructor Description OpenTest4JAndJUnit4AwareThrowableCollector()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.util.function.Predicate<? super java.lang.Throwable>
createAbortedExecutionPredicate()
-
Methods inherited from class org.junit.platform.engine.support.hierarchical.ThrowableCollector
assertEmpty, execute, getThrowable, isEmpty, isNotEmpty, toTestExecutionResult
-
-
-
-
Field Detail
-
logger
private static final Logger logger
-
ASSUMPTION_VIOLATED_EXCEPTION
private static final java.lang.String ASSUMPTION_VIOLATED_EXCEPTION
- See Also:
- Constant Field Values
-
COMMON_FAILURE_MESSAGE
private static final java.lang.String COMMON_FAILURE_MESSAGE
-
abortedExecutionPredicate
private static final java.util.function.Predicate<? super java.lang.Throwable> abortedExecutionPredicate
-
-