class OpenTest4JAndJUnit4AwareThrowableCollector extends ThrowableCollector
ThrowableCollector
that treats instances of the
OTA's TestAbortedException
and JUnit 4's
org.junit.AssumptionViolatedException
as aborting.ThrowableCollector
,
OpenTest4JAwareThrowableCollector
ThrowableCollector.Executable, ThrowableCollector.Factory
Modifier and Type | Field and 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 and Description |
---|
OpenTest4JAndJUnit4AwareThrowableCollector() |
Modifier and Type | Method and Description |
---|---|
private static java.util.function.Predicate<? super java.lang.Throwable> |
createAbortedExecutionPredicate() |
assertEmpty, execute, getThrowable, isEmpty, isNotEmpty, toTestExecutionResult
private static final Logger logger
private static final java.lang.String ASSUMPTION_VIOLATED_EXCEPTION
private static final java.lang.String COMMON_FAILURE_MESSAGE
private static final java.util.function.Predicate<? super java.lang.Throwable> abortedExecutionPredicate