Package | Description |
---|---|
org.junit.jupiter.api.extension |
JUnit Jupiter API for writing extensions.
|
org.junit.jupiter.engine.execution |
Internal classes for test execution within the JUnit Jupiter test engine.
|
org.junit.jupiter.engine.extension |
Test extensions specific to the JUnit Jupiter test engine.
|
Modifier and Type | Method and Description |
---|---|
default void |
InvocationInterceptor.interceptAfterAllMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of an
@AfterAll method. |
default void |
InvocationInterceptor.interceptAfterEachMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of an
@AfterEach method. |
default void |
InvocationInterceptor.interceptBeforeAllMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a
@BeforeAll method. |
default void |
InvocationInterceptor.interceptBeforeEachMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a
@BeforeEach method. |
default void |
InvocationInterceptor.interceptDynamicTest(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ExtensionContext extensionContext)
Intercept the invocation of a
DynamicTest . |
default <T> T |
InvocationInterceptor.interceptTestClassConstructor(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Constructor<T>> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a test class constructor.
|
default <T> T |
InvocationInterceptor.interceptTestFactoryMethod(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a
@TestFactory method. |
default void |
InvocationInterceptor.interceptTestMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a
@Test method. |
default void |
InvocationInterceptor.interceptTestTemplateMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext)
Intercept the invocation of a
@TestTemplate method. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ConstructorInvocation<T> |
private static class |
InvocationInterceptorChain.InterceptedInvocation<T> |
private static class |
InvocationInterceptorChain.ValidatingInvocation<T> |
(package private) class |
MethodInvocation<T> |
Modifier and Type | Field and Description |
---|---|
private InvocationInterceptor.Invocation<T> |
InvocationInterceptorChain.ValidatingInvocation.delegate |
private InvocationInterceptor.Invocation<T> |
InvocationInterceptorChain.InterceptedInvocation.invocation |
Modifier and Type | Method and Description |
---|---|
private <T> InvocationInterceptor.Invocation<T> |
InvocationInterceptorChain.chainInterceptors(InvocationInterceptor.Invocation<T> invocation,
InvocationInterceptorChain.InterceptorCall<T> call,
java.util.List<InvocationInterceptor> interceptors) |
Modifier and Type | Method and Description |
---|---|
T |
InvocationInterceptorChain.InterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<T> invocation) |
T |
ExecutableInvoker.ReflectiveInterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<E> invocationContext,
ExtensionContext extensionContext) |
void |
InvocationInterceptorChain.VoidInterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<java.lang.Void> invocation) |
void |
ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
private <T> T |
InvocationInterceptorChain.chainAndInvoke(InvocationInterceptor.Invocation<T> invocation,
InvocationInterceptorChain.InterceptorCall<T> call,
java.util.List<InvocationInterceptor> interceptors) |
private <T> InvocationInterceptor.Invocation<T> |
InvocationInterceptorChain.chainInterceptors(InvocationInterceptor.Invocation<T> invocation,
InvocationInterceptorChain.InterceptorCall<T> call,
java.util.List<InvocationInterceptor> interceptors) |
<T> T |
InvocationInterceptorChain.invoke(InvocationInterceptor.Invocation<T> invocation,
ExtensionRegistry extensionRegistry,
InvocationInterceptorChain.InterceptorCall<T> call) |
private <E extends java.lang.reflect.Executable,T> |
ExecutableInvoker.invoke(InvocationInterceptor.Invocation<T> originalInvocation,
ReflectiveInvocationContext<E> invocationContext,
ExtensionContext extensionContext,
ExtensionRegistry extensionRegistry,
ExecutableInvoker.ReflectiveInterceptorCall<E,T> call) |
private <T> T |
InvocationInterceptorChain.proceed(InvocationInterceptor.Invocation<T> invocation) |
Constructor and Description |
---|
InterceptedInvocation(InvocationInterceptor.Invocation<T> invocation,
InvocationInterceptorChain.InterceptorCall<T> call,
InvocationInterceptor interceptor) |
ValidatingInvocation(InvocationInterceptor.Invocation<T> delegate,
java.util.List<InvocationInterceptor> interceptors) |
Modifier and Type | Class and Description |
---|---|
(package private) class |
TimeoutInvocation<T> |
Modifier and Type | Field and Description |
---|---|
private InvocationInterceptor.Invocation<T> |
TimeoutInvocation.delegate |
Modifier and Type | Method and Description |
---|---|
private <T> InvocationInterceptor.Invocation<T> |
TimeoutExtension.decorate(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext,
TimeoutDuration timeout) |
Modifier and Type | Method and Description |
---|---|
private <T> InvocationInterceptor.Invocation<T> |
TimeoutExtension.decorate(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext,
TimeoutDuration timeout) |
private <T> T |
TimeoutExtension.intercept(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext,
TimeoutDuration explicitTimeout,
TimeoutExtension.TimeoutProvider defaultTimeoutProvider) |
void |
TimeoutExtension.interceptAfterAllMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
void |
TimeoutExtension.interceptAfterEachMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
void |
TimeoutExtension.interceptBeforeAllMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
void |
TimeoutExtension.interceptBeforeEachMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
private void |
TimeoutExtension.interceptLifecycleMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext,
TimeoutExtension.TimeoutProvider defaultTimeoutProvider) |
private <T> T |
TimeoutExtension.interceptTestableMethod(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext,
TimeoutExtension.TimeoutProvider defaultTimeoutProvider) |
<T> T |
TimeoutExtension.interceptTestFactoryMethod(InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
void |
TimeoutExtension.interceptTestMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
void |
TimeoutExtension.interceptTestTemplateMethod(InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
Constructor and Description |
---|
TimeoutInvocation(InvocationInterceptor.Invocation<T> delegate,
TimeoutDuration timeout,
java.util.concurrent.ScheduledExecutorService executor,
java.util.function.Supplier<java.lang.String> descriptionSupplier) |