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 ofThrowableCollectorthat treats instances of the OTA'sTestAbortedExceptionand JUnit 4'sorg.junit.AssumptionViolatedExceptionas 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>abortedExecutionPredicateprivate static java.lang.StringASSUMPTION_VIOLATED_EXCEPTIONprivate static java.lang.StringCOMMON_FAILURE_MESSAGEprivate static org.junit.platform.commons.logging.Loggerlogger
-
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 org.junit.platform.commons.logging.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
-
-