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 <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> |
(package private) class |
MethodInvocation<T> |
Modifier and Type | Method and Description |
---|---|
T |
ExecutableInvoker.ReflectiveInterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<T> invocation,
ReflectiveInvocationContext<E> invocationContext,
ExtensionContext extensionContext) |
void |
ExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall.apply(InvocationInterceptor interceptor,
InvocationInterceptor.Invocation<java.lang.Void> invocation,
ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
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) |
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 java.lang.String |
TimeoutExtension.describe(ReflectiveInvocationContext<java.lang.reflect.Method> invocationContext,
ExtensionContext extensionContext) |
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) |