JUnit Jupiter API for writing extensions.
AfterAllCallbackdefines the API for
Extensionsthat wish to provide additional behavior to test containers once after all tests in the container have been executed.
BeforeAllCallbackdefines the API for
Extensionsthat wish to provide additional behavior to test containers once before all tests in the container have been executed.
DynamicTestInvocationContextrepresents the context of a single invocation of a dynamic test.
ExtensionAPI for programmatic, conditional test execution.Marker interface for all extensions.
ExtensionContextencapsulates the context in which the current test or container is being executed.
Storeprovides methods for extensions to save and retrieve data.
InvocationInterceptordefines the API for
Extensionsthat wish to intercept calls to test code.An invocation that returns a result and may throw a
LifecycleMethodExecutionExceptionHandlerdefines the API for
Extensionsthat wish to handle exceptions thrown during the execution of
ReflectiveInvocationContextencapsulates the context of a reflective invocation of an executable (method or constructor).
TestExecutionExceptionHandlerdefines the API for
Extensionsthat wish to handle exceptions thrown during test execution.
TestInstancePostProcessordefines the API for
Extensionsthat wish to post-process test instances.
TestInstancePreDestroyCallbackdefines the API for
Extensionsthat wish to process test instances after they have been used in tests but before they are destroyed.
TestInstancesencapsulates the test instances of a test.
TestTemplateInvocationContextrepresents the context of a single invocation of a test template.
TestWatcherdefines the API for
Extensionsthat wish to process test results.
- ExceptionDescriptionThrown if an error is encountered regarding the configuration of an extension.Thrown if an error is encountered in the configuration or execution of a
ParameterResolver.Thrown if an error is encountered during the execution of a
- Annotation InterfaceDescription
@Extensionsis a container for one or more
@RegisterExtensionis used to register an
Extensionvia a field in a test class.