Uses of Interface
org.junit.jupiter.api.extension.Extension
Packages that use Extension
Package
Description
JUnit Jupiter API for writing extensions.
JUnit Jupiter API support for writing extensions.
Configuration specific to 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.
Deprecated extensions that provide support for conditional test
execution features of JUnit 4 (e.g., the
@Ignore
annotation) within JUnit Jupiter.Deprecated extensions which provide (limited) support for JUnit 4
rules within JUnit Jupiter.
-
Uses of Extension in org.junit.jupiter.api.extension
Subinterfaces of Extension in org.junit.jupiter.api.extensionModifier and TypeInterfaceDescriptioninterfaceAfterAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once after all tests in the container have been executed.interfaceAfterClassTemplateInvocationCallbackdefines the API forExtensionsthat wish to provide additional behavior once before each invocation of a@ClassTemplate.interfaceAfterEachCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests after an individual test and any user-defined teardown methods (e.g.,@AfterEachmethods) for that test have been executed.interfaceAfterTestExecutionCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests immediately after an individual test has been executed but before any user-defined teardown methods (e.g.,@AfterEachmethods) have been executed for that test.interfaceBeforeAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once before all tests in the container have been executed.interfaceBeforeClassTemplateInvocationCallbackdefines the API forExtensionsthat wish to provide additional behavior once before each invocation of a@ClassTemplate.interfaceBeforeEachCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests before an individual test and any user-defined setup methods (e.g.,@BeforeEachmethods) for that test have been executed.interfaceBeforeTestExecutionCallbackdefines the API forExtensionsthat wish to provide additional behavior to tests immediately before an individual test is executed but after any user-defined setup methods (e.g.,@BeforeEachmethods) have been executed for that test.interfaceClassTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@ClassTemplate.interfaceExecutionConditiondefines theExtensionAPI for programmatic, conditional test execution.interfaceInvocationInterceptordefines the API forExtensionsthat wish to intercept calls to test code.interfaceLifecycleMethodExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during the execution of@BeforeAll,@BeforeEach,@AfterEach, and@AfterAlllifecycle methods.interfaceParameterResolverdefines the API forExtensionsthat wish to dynamically resolve arguments for parameters at runtime.interfacePreInterruptCallbackdefines the API forExtensionsthat wish to be called prior to invocations ofThread.interrupt()by theTimeoutextension.interfaceTestExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during test execution.interfaceinterfaceTestInstancePostProcessordefines the API forExtensionsthat wish to post-process test instances.interfaceTestInstancePreConstructCallbackdefines the API forExtensionsthat wish to be invoked prior to creation of test instances.interfaceTestInstancePreDestroyCallbackdefines the API forExtensionsthat wish to process test instances after they have been used in tests but before they are destroyed.interfaceTestInstantiationAwareExtensiondefines the API forExtensionsthat are aware of or influence the instantiation of test classes.interfaceTestTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@TestTemplatemethod.interfaceTestWatcherdefines the API forExtensionsthat wish to process test results.Methods in org.junit.jupiter.api.extension that return types with arguments of type ExtensionModifier and TypeMethodDescriptionClassTemplateInvocationContext.getAdditionalExtensions()Get the additional extensions for this invocation.TestTemplateInvocationContext.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 TypeClassDescriptionclassTypeBasedParameterResolver<T extends @Nullable Object>ParameterResolveradapter which resolves a parameter based on its exact type. -
Uses of Extension in org.junit.jupiter.engine.config
Methods in org.junit.jupiter.engine.config that return types with arguments of type ExtensionModifier and TypeMethodDescriptionCachingJupiterConfiguration.getFilterForAutoDetectedExtensions()DefaultJupiterConfiguration.getFilterForAutoDetectedExtensions()JupiterConfiguration.getFilterForAutoDetectedExtensions() -
Uses of Extension in org.junit.jupiter.engine.execution
Subinterfaces of Extension in org.junit.jupiter.engine.executionModifier and TypeInterfaceDescriptioninterfaceFunctional interface for registering an@AfterEachmethod as a pseudo-extension.interfaceFunctional interface for registering a@BeforeEachmethod as a pseudo-extension. -
Uses of Extension in org.junit.jupiter.engine.extension
Methods in org.junit.jupiter.engine.extension with type parameters of type ExtensionModifier and TypeMethodDescriptionExtensionContextInternal.getExtensions(Class<E> extensionType) Returns a list of registered extension at this context of the passedextensionType.ExtensionRegistry.getExtensions(Class<E> extensionType) Get allExtensionsof the specified type that are present in this registry or one of its ancestors.Stream allExtensionsof the specified type that are present in this registry or one of its ancestors.Methods in org.junit.jupiter.engine.extension with parameters of type ExtensionModifier and TypeMethodDescriptionvoidExtensionRegistrar.registerExtension(Extension extension, Object source) Register the suppliedExtension, without checking if an extension of that type has already been registered.voidMutableExtensionRegistry.registerExtension(Extension extension, Object source) voidExtensionRegistrar.registerSyntheticExtension(Extension extension, Object source) Register the suppliedExtensionas a synthetic extension, without checking if an extension of that type has already been registered.voidMutableExtensionRegistry.registerSyntheticExtension(Extension extension, Object source) Method parameters in org.junit.jupiter.engine.extension with type arguments of type ExtensionModifier and TypeMethodDescriptionstatic MutableExtensionRegistryMutableExtensionRegistry.createRegistryFrom(MutableExtensionRegistry parentRegistry, Stream<Class<? extends Extension>> extensionTypes) Factory for creating and populating a new registry from a list of extension types and a parent registry.voidExtensionRegistrar.registerExtension(Class<? extends Extension> extensionType) Instantiate an extension of the given type using its default constructor and register it in the registry.voidMutableExtensionRegistry.registerExtension(Class<? extends Extension> extensionType) voidExtensionRegistrar.registerUninitializedExtension(Class<?> testClass, Field source, Function<Object, ? extends Extension> initializer) Register an uninitialized extension for the suppliedtestClassto be initialized using the suppliedinitializerwhen an instance of the test class is created.voidMutableExtensionRegistry.registerUninitializedExtension(Class<?> testClass, Field source, Function<Object, ? extends Extension> initializer) -
Uses of Extension in org.junit.jupiter.migrationsupport.conditions
Classes in org.junit.jupiter.migrationsupport.conditions that implement ExtensionModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version. -
Uses of Extension in org.junit.jupiter.migrationsupport.rules
Classes in org.junit.jupiter.migrationsupport.rules that implement ExtensionModifier and TypeClassDescriptionclassDeprecated, for removal: This API element is subject to removal in a future version.Please useAssertions.assertThrows(Class, Executable)instead.classDeprecated, for removal: This API element is subject to removal in a future version.Please use@AutoCloseinstead.classDeprecated, for removal: This API element is subject to removal in a future version.Please implementAfterTestExecutionCallbackinstead.
@Disabledinstead.