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.The result of evaluating an
DynamicTestInvocationContextrepresents the context of a single invocation of a dynamic test.
ExecutableInvokerallows invoking methods and constructors with support for dynamic resolution of parameters via
ExtensionAPI for programmatic, conditional test execution.Marker interface for all extensions.Thrown if an error is encountered regarding the configuration of an extension.
ExtensionContextencapsulates the context in which the current test or container is being executed.A
Namespaceis used to provide a scope for data saved by extensions within a
Storeprovides methods for extensions to save and retrieve data.
@Extensionsis a container for one or more
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
@AfterAlllifecycle methods.Thrown if an error is encountered in the configuration or execution of a
ReflectiveInvocationContextencapsulates the context of a reflective invocation of an executable (method or constructor).
@RegisterExtensionis used to register an
Extensionvia a field in a test class.
TestExecutionExceptionHandlerdefines the API for
Extensionsthat wish to handle exceptions thrown during test execution.
TestInstancePostProcessordefines the API for
Extensionsthat wish to post-process test instances.
TestInstancePreConstructCallbackdefines the API for
Extensionsthat wish to be invoked prior to creation of 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.Thrown if an error is encountered during the execution of a
TestTemplateInvocationContextrepresents the context of a single invocation of a test template.
TestWatcherdefines the API for
Extensionsthat wish to process test results.