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) classAbstractRepeatableAnnotationCondition<A extends Annotation>Abstract base class forExecutionConditionimplementations that support repeatable annotations.(package private) classBooleanExecutionCondition<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) classMethodBasedCondition<A extends Annotation> -
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.descriptor
Classes in org.junit.jupiter.engine.descriptor with type parameters of type ExtensionModifier and TypeInterfaceDescription(package private) static interfaceprivate static interfaceMethods 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 suppliedThrowableone-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 voidClassBasedTestDescriptor.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 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
Classes in org.junit.jupiter.engine.extension that implement ExtensionModifier and TypeClassDescription(package private) classExecutionConditionthat supports the@Disabledannotation.(package private) classTestTemplateInvocationContextProviderthat supports the@RepeatedTestannotation.(package private) class(package private) classTempDirectoryis 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) classParameterResolverthat resolves theTestInfofor the currently executing test.(package private) classParameterResolverthat injects aTestReporter.(package private) classFields in org.junit.jupiter.engine.extension with type parameters of type ExtensionModifier and TypeFieldDescriptionMutableExtensionRegistry.DEFAULT_EXTENSIONSMutableExtensionRegistry.registeredExtensionsMutableExtensionRegistry.registeredExtensionTypesMethods 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.MutableExtensionRegistry.streamLocal(Class<E> extensionType) Stream allExtensionsof 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 voidMutableExtensionRegistry.registerDefaultExtension(Extension extension) voidExtensionRegistrar.registerExtension(Extension extension, Object source) Register the suppliedExtension, without checking if an extension of that type has already been registered.private voidMutableExtensionRegistry.registerExtension(Extension extension) voidMutableExtensionRegistry.registerExtension(Extension extension, Object source) Method parameters in org.junit.jupiter.engine.extension with type arguments of type ExtensionModifier and TypeMethodDescriptionstatic MutableExtensionRegistryMutableExtensionRegistry.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 booleanMutableExtensionRegistry.isAlreadyRegistered(Class<? extends Extension> extensionType) Determine if the supplied type is already registered in this registry or in a parent registry.(package private) voidMutableExtensionRegistry.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 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.(package private) classclassThisExtensionprovides native support for subclasses of theVerifierrule 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) classMethods in org.junit.jupiter.params that return types with arguments of type Extension