Class OpenTest4JAndJUnit4AwareThrowableCollector


  • class OpenTest4JAndJUnit4AwareThrowableCollector
    extends org.junit.platform.engine.support.hierarchical.ThrowableCollector
    Specialization of ThrowableCollector that treats instances of the OTA's TestAbortedException and JUnit 4's org.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

        org.junit.platform.engine.support.hierarchical.ThrowableCollector.Executable, org.junit.platform.engine.support.hierarchical.ThrowableCollector.Factory
    • 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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • OpenTest4JAndJUnit4AwareThrowableCollector

        OpenTest4JAndJUnit4AwareThrowableCollector()
    • Method Detail

      • createAbortedExecutionPredicate

        private static java.util.function.Predicate<? super java.lang.Throwable> createAbortedExecutionPredicate()