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.
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.
-
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.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.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.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.interfaceTestExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during test execution.interfaceinterfaceTestInstancePostProcessordefines the API forExtensionsthat wish to post-process test instances.interfaceTestInstancePreDestroyCallbackdefines the API forExtensionsthat wish to process test instances after they have been used in tests but before they are destroyed.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 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 TypeClassDescriptionclassParameterResolveradapter which resolves a parameter based on its exact type. -
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 TypeMethodDescriptionExtensionRegistry.getExtensions(Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors.ExtensionRegistry.getReversedExtensions(Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors, in reverse order.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) -
Uses of Extension in org.junit.jupiter.migrationsupport.conditions
Classes in org.junit.jupiter.migrationsupport.conditions that implement ExtensionModifier and TypeClassDescriptionclassExecutionConditionthat supports JUnit 4's@Ignoreannotation. -
Uses of Extension in org.junit.jupiter.migrationsupport.rules
Classes in org.junit.jupiter.migrationsupport.rules that implement ExtensionModifier and TypeClassDescriptionclassThisExtensionprovides native support for theExpectedExceptionrule from JUnit 4.classThisExtensionprovides native support for subclasses of theExternalResourcerule from JUnit 4.classThisExtensionprovides native support for subclasses of theVerifierrule from JUnit 4.