Uses of Interface
org.junit.jupiter.api.extension.Extension
Packages that use Extension
Package
Description
Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.
JUnit Jupiter API for writing extensions.
JUnit Jupiter API support for writing extensions.
Test descriptors used within the JUnit Jupiter test engine.
Internal classes for test execution within the JUnit Jupiter test engine.
Test extensions specific to the JUnit Jupiter test engine.
Extensions which provide support for conditional test execution features of
JUnit 4 (e.g., the
@Ignore
annotation) within JUnit
Jupiter.Extensions which provide (limited) support for JUnit 4 rules within JUnit Jupiter.
JUnit Jupiter extension for parameterized tests.
-
Uses of Extension in org.junit.jupiter.api.condition
Classes in org.junit.jupiter.api.condition that implement ExtensionModifier and TypeClassDescription(package private) class
AbstractRepeatableAnnotationCondition<A extends Annotation>
Abstract base class forExecutionCondition
implementations that support repeatable annotations.(package private) class
BooleanExecutionCondition<A extends Annotation>
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
(package private) class
MethodBasedCondition<A extends Annotation>
-
Uses of Extension in org.junit.jupiter.api.extension
Subinterfaces of Extension in org.junit.jupiter.api.extensionModifier and TypeInterfaceDescriptioninterface
AfterAllCallback
defines the API forExtensions
that wish to provide additional behavior to test containers once after all tests in the container have been executed.interface
AfterEachCallback
defines the API forExtensions
that wish to provide additional behavior to tests after an individual test and any user-defined teardown methods (e.g.,@AfterEach
methods) for that test have been executed.interface
AfterTestExecutionCallback
defines the API forExtensions
that wish to provide additional behavior to tests immediately after an individual test has been executed but before any user-defined teardown methods (e.g.,@AfterEach
methods) have been executed for that test.interface
BeforeAllCallback
defines the API forExtensions
that wish to provide additional behavior to test containers once before all tests in the container have been executed.interface
BeforeEachCallback
defines the API forExtensions
that wish to provide additional behavior to tests before an individual test and any user-defined setup methods (e.g.,@BeforeEach
methods) for that test have been executed.interface
BeforeTestExecutionCallback
defines the API forExtensions
that wish to provide additional behavior to tests immediately before an individual test is executed but after any user-defined setup methods (e.g.,@BeforeEach
methods) have been executed for that test.interface
ExecutionCondition
defines theExtension
API for programmatic, conditional test execution.interface
InvocationInterceptor
defines the API forExtensions
that wish to intercept calls to test code.interface
LifecycleMethodExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during the execution of@BeforeAll
,@BeforeEach
,@AfterEach
, and@AfterAll
lifecycle methods.interface
ParameterResolver
defines the API forExtensions
that wish to dynamically resolve arguments for parameters at runtime.interface
TestExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during test execution.interface
interface
TestInstancePostProcessor
defines the API forExtensions
that wish to post-process test instances.interface
TestInstancePreDestroyCallback
defines the API forExtensions
that wish to process test instances after they have been used in tests but before they are destroyed.interface
TestTemplateInvocationContextProvider
defines the API forExtensions
that wish to provide one or multiple contexts for the invocation of a@TestTemplate
method.interface
TestWatcher
defines the API forExtensions
that wish to process test results.Methods in org.junit.jupiter.api.extension that return types with arguments of type ExtensionModifier and TypeMethodDescriptionTestTemplateInvocationContext.getAdditionalExtensions()
Get the additional extensions for this invocation. -
Uses of Extension in org.junit.jupiter.api.extension.support
Classes in org.junit.jupiter.api.extension.support that implement ExtensionModifier and TypeClassDescriptionclass
ParameterResolver
adapter which resolves a parameter based on its exact type. -
Uses of Extension in org.junit.jupiter.engine.descriptor
Classes in org.junit.jupiter.engine.descriptor with type parameters of type ExtensionModifier and TypeInterfaceDescription(package private) static interface
private static interface
Methods in org.junit.jupiter.engine.descriptor with type parameters of type ExtensionModifier and TypeMethodDescriptionprivate <T extends Extension>
voidTestMethodTestDescriptor.invokeAllAfterMethodsOrCallbacks
(Class<T> type, JupiterEngineExecutionContext context, TestMethodTestDescriptor.CallbackInvoker<T> callbackInvoker) private <T extends Extension>
voidTestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs
(Class<T> type, JupiterEngineExecutionContext context, TestMethodTestDescriptor.CallbackInvoker<T> callbackInvoker) (package private) <E extends Extension>
voidJupiterTestDescriptor.invokeExecutionExceptionHandlers
(Class<E> handlerType, ExtensionRegistry registry, Throwable throwable, JupiterTestDescriptor.ExceptionHandlerInvoker<E> handlerInvoker) Invoke exception handlers for the suppliedThrowable
one-by-one until none are left or the throwable to handle has been swallowed.private <E extends Extension>
voidJupiterTestDescriptor.invokeExecutionExceptionHandlers
(List<E> exceptionHandlers, Throwable throwable, JupiterTestDescriptor.ExceptionHandlerInvoker<E> handlerInvoker) Method parameters in org.junit.jupiter.engine.descriptor with type arguments of type ExtensionModifier and TypeMethodDescriptionprivate void
ClassBasedTestDescriptor.registerMethodsAsExtensions
(List<Method> methods, ExtensionRegistrar registrar, Function<Method, Extension> extensionSynthesizer) -
Uses of Extension in org.junit.jupiter.engine.execution
Subinterfaces of Extension in org.junit.jupiter.engine.executionModifier and TypeInterfaceDescriptioninterface
Functional interface for registering an@AfterEach
method as a pseudo-extension.interface
Functional interface for registering a@BeforeEach
method as a pseudo-extension. -
Uses of Extension in org.junit.jupiter.engine.extension
Classes in org.junit.jupiter.engine.extension that implement ExtensionModifier and TypeClassDescription(package private) class
ExecutionCondition
that supports the@Disabled
annotation.(package private) class
TestTemplateInvocationContextProvider
that supports the@RepeatedTest
annotation.(package private) class
(package private) class
TempDirectory
is a JUnit Jupiter extension that creates and cleans up temporary directories if field in a test class or a parameter in a lifecycle method or test method is annotated with@TempDir
.(package private) class
ParameterResolver
that resolves theTestInfo
for the currently executing test.(package private) class
ParameterResolver
that injects aTestReporter
.(package private) class
Fields in org.junit.jupiter.engine.extension with type parameters of type ExtensionModifier and TypeFieldDescriptionMutableExtensionRegistry.DEFAULT_EXTENSIONS
MutableExtensionRegistry.registeredExtensions
MutableExtensionRegistry.registeredExtensionTypes
Methods in org.junit.jupiter.engine.extension with type parameters of type ExtensionModifier and TypeMethodDescriptionExtensionRegistry.getExtensions
(Class<E> extensionType) Get allExtensions
of the specified type that are present in this registry or one of its ancestors.ExtensionRegistry.getReversedExtensions
(Class<E> extensionType) Get allExtensions
of the specified type that are present in this registry or one of its ancestors, in reverse order.Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.MutableExtensionRegistry.streamLocal
(Class<E> extensionType) Stream allExtensions
of the specified type that are present in this registry.Methods in org.junit.jupiter.engine.extension that return types with arguments of type ExtensionMethods in org.junit.jupiter.engine.extension with parameters of type ExtensionModifier and TypeMethodDescriptionprivate void
MutableExtensionRegistry.registerDefaultExtension
(Extension extension) void
ExtensionRegistrar.registerExtension
(Extension extension, Object source) Register the suppliedExtension
, without checking if an extension of that type has already been registered.private void
MutableExtensionRegistry.registerExtension
(Extension extension) void
MutableExtensionRegistry.registerExtension
(Extension extension, Object source) Method parameters in org.junit.jupiter.engine.extension with type arguments of type ExtensionModifier and TypeMethodDescriptionstatic MutableExtensionRegistry
MutableExtensionRegistry.createRegistryFrom
(MutableExtensionRegistry parentRegistry, List<Class<? extends Extension>> extensionTypes) Factory for creating and populating a new registry from a list of extension types and a parent registry.private boolean
MutableExtensionRegistry.isAlreadyRegistered
(Class<? extends Extension> extensionType) Determine if the supplied type is already registered in this registry or in a parent registry.(package private) void
MutableExtensionRegistry.registerExtension
(Class<? extends Extension> extensionType) Instantiate an extension of the given type using its default constructor and register it in this registry. -
Uses of Extension in org.junit.jupiter.migrationsupport.conditions
Classes in org.junit.jupiter.migrationsupport.conditions that implement ExtensionModifier and TypeClassDescriptionclass
ExecutionCondition
that supports JUnit 4's@Ignore
annotation. -
Uses of Extension in org.junit.jupiter.migrationsupport.rules
Classes in org.junit.jupiter.migrationsupport.rules that implement ExtensionModifier and TypeClassDescriptionclass
ThisExtension
provides native support for theExpectedException
rule from JUnit 4.class
ThisExtension
provides native support for subclasses of theExternalResource
rule from JUnit 4.(package private) class
class
ThisExtension
provides native support for subclasses of theVerifier
rule from JUnit 4. -
Uses of Extension in org.junit.jupiter.params
Classes in org.junit.jupiter.params that implement ExtensionModifier and TypeClassDescription(package private) class
(package private) class
Methods in org.junit.jupiter.params that return types with arguments of type Extension