public class AbortOnException extends ExceptionCollector implements org.junit.jupiter.api.extension.InvocationInterceptor, org.junit.jupiter.api.extension.BeforeAllCallback
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbortOnException.Except
In combination with
AbortOnException. |
static interface |
AbortOnException.Ignore
Like having both
AbortOnException.NoAbort and AbortOnException.Except, effectively makng the complete test method ignored by the abort on exception logic. |
static interface |
AbortOnException.NoAbort
In combination with
AbortOnException. |
static interface |
AbortOnException.OnlyIfOrdered
Only it the test class is also 'ordered' apply the abort on exception logic.
|
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
active |
protected int |
relevantFails |
| Constructor and Description |
|---|
AbortOnException() |
| Modifier and Type | Method and Description |
|---|---|
void |
beforeAll(org.junit.jupiter.api.extension.ExtensionContext context) |
void |
interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation,
org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext,
org.junit.jupiter.api.extension.ExtensionContext extensionContext) |
resolveParameter, supportsParameterpublic void beforeAll(org.junit.jupiter.api.extension.ExtensionContext context)
beforeAll in interface org.junit.jupiter.api.extension.BeforeAllCallbackpublic void interceptTestMethod(org.junit.jupiter.api.extension.InvocationInterceptor.Invocation<Void> invocation, org.junit.jupiter.api.extension.ReflectiveInvocationContext<Method> invocationContext, org.junit.jupiter.api.extension.ExtensionContext extensionContext) throws Throwable
interceptTestMethod in interface org.junit.jupiter.api.extension.InvocationInterceptorinterceptTestMethod in class ExceptionCollectorThrowableCopyright © 2020. All rights reserved.