Uses of Interface
org.junit.jupiter.api.extension.Extension
-
Packages that use Extension Package Description org.junit.jupiter.api.condition Annotation-based conditions for enabling or disabling tests in JUnit Jupiter.org.junit.jupiter.api.extension JUnit Jupiter API for writing extensions.org.junit.jupiter.api.extension.support JUnit Jupiter API support for writing extensions.org.junit.jupiter.engine.descriptor Test descriptors used within the JUnit Jupiter test engine.org.junit.jupiter.engine.execution Internal classes for test execution within the JUnit Jupiter test engine.org.junit.jupiter.engine.extension Test extensions specific to the JUnit Jupiter test engine.org.junit.jupiter.migrationsupport.conditions Extensions which provide support for conditional test execution features of JUnit 4 (e.g., the@Ignoreannotation) within JUnit Jupiter.org.junit.jupiter.migrationsupport.rules Extensions which provide (limited) support for JUnit 4 rules within JUnit Jupiter.org.junit.jupiter.params JUnit Jupiter extension for parameterized tests. -
-
Uses of Extension in org.junit.jupiter.api.condition
Classes in org.junit.jupiter.api.condition that implement Extension Modifier and Type Class Description (package private) classAbstractRepeatableAnnotationCondition<A extends java.lang.annotation.Annotation>Abstract base class forExecutionConditionimplementations that support repeatable annotations.(package private) classBooleanExecutionCondition<A extends java.lang.annotation.Annotation>(package private) classDisabledForJreRangeCondition(package private) classDisabledIfCondition(package private) classDisabledIfEnvironmentVariableCondition(package private) classDisabledIfSystemPropertyCondition(package private) classDisabledOnJreCondition(package private) classDisabledOnOsCondition(package private) classEnabledForJreRangeCondition(package private) classEnabledIfCondition(package private) classEnabledIfEnvironmentVariableCondition(package private) classEnabledIfSystemPropertyCondition(package private) classEnabledOnJreCondition(package private) classEnabledOnOsCondition(package private) classMethodBasedCondition<A extends java.lang.annotation.Annotation> -
Uses of Extension in org.junit.jupiter.api.extension
Subinterfaces of Extension in org.junit.jupiter.api.extension Modifier and Type Interface Description interfaceAfterAllCallbackAfterAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once after all tests in the container have been executed.interfaceAfterEachCallbackAfterEachCallbackdefines 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.interfaceAfterTestExecutionCallbackAfterTestExecutionCallbackdefines 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.interfaceBeforeAllCallbackBeforeAllCallbackdefines the API forExtensionsthat wish to provide additional behavior to test containers once before all tests in the container have been executed.interfaceBeforeEachCallbackBeforeEachCallbackdefines 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.interfaceBeforeTestExecutionCallbackBeforeTestExecutionCallbackdefines 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.interfaceExecutionConditionExecutionConditiondefines theExtensionAPI for programmatic, conditional test execution.interfaceInvocationInterceptorInvocationInterceptordefines the API forExtensionsthat wish to intercept calls to test code.interfaceLifecycleMethodExecutionExceptionHandlerLifecycleMethodExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during the execution of@BeforeAll,@BeforeEach,@AfterEach, and@AfterAlllifecycle methods.interfaceParameterResolverParameterResolverdefines the API forExtensionsthat wish to dynamically resolve arguments for parameters at runtime.interfaceTestExecutionExceptionHandlerTestExecutionExceptionHandlerdefines the API forExtensionsthat wish to handle exceptions thrown during test execution.interfaceTestInstanceFactoryinterfaceTestInstancePostProcessorTestInstancePostProcessordefines the API forExtensionsthat wish to post-process test instances.interfaceTestInstancePreDestroyCallbackTestInstancePreDestroyCallbackdefines the API forExtensionsthat wish to process test instances after they have been used in tests but before they are destroyed.interfaceTestTemplateInvocationContextProviderTestTemplateInvocationContextProviderdefines the API forExtensionsthat wish to provide one or multiple contexts for the invocation of a@TestTemplatemethod.interfaceTestWatcherTestWatcherdefines the API forExtensionsthat wish to process test results.Methods in org.junit.jupiter.api.extension that return types with arguments of type Extension Modifier and Type Method Description default java.util.List<Extension>TestTemplateInvocationContext. getAdditionalExtensions()Get the additional extensions for this invocation.java.lang.Class<? extends Extension>[]value()An array of one or moreExtensionclasses to register. -
Uses of Extension in org.junit.jupiter.api.extension.support
Classes in org.junit.jupiter.api.extension.support that implement Extension Modifier and Type Class Description classTypeBasedParameterResolver<T>ParameterResolveradapter 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 Extension Modifier and Type Interface Description (package private) static interfaceJupiterTestDescriptor.ExceptionHandlerInvoker<E extends Extension>private static interfaceTestMethodTestDescriptor.CallbackInvoker<T extends Extension>Methods in org.junit.jupiter.engine.descriptor with type parameters of type Extension Modifier and Type Method Description private <T extends Extension>
voidTestMethodTestDescriptor. invokeAllAfterMethodsOrCallbacks(java.lang.Class<T> type, JupiterEngineExecutionContext context, TestMethodTestDescriptor.CallbackInvoker<T> callbackInvoker)private <T extends Extension>
voidTestMethodTestDescriptor. invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(java.lang.Class<T> type, JupiterEngineExecutionContext context, TestMethodTestDescriptor.CallbackInvoker<T> callbackInvoker)(package private) <E extends Extension>
voidJupiterTestDescriptor. invokeExecutionExceptionHandlers(java.lang.Class<E> handlerType, ExtensionRegistry registry, java.lang.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(java.util.List<E> exceptionHandlers, java.lang.Throwable throwable, JupiterTestDescriptor.ExceptionHandlerInvoker<E> handlerInvoker)Method parameters in org.junit.jupiter.engine.descriptor with type arguments of type Extension Modifier and Type Method Description private voidClassBasedTestDescriptor. registerMethodsAsExtensions(java.util.List<java.lang.reflect.Method> methods, ExtensionRegistrar registrar, java.util.function.Function<java.lang.reflect.Method,Extension> extensionSynthesizer) -
Uses of Extension in org.junit.jupiter.engine.execution
Subinterfaces of Extension in org.junit.jupiter.engine.execution Modifier and Type Interface Description interfaceAfterEachMethodAdapterFunctional interface for registering an@AfterEachmethod as a pseudo-extension.interfaceBeforeEachMethodAdapterFunctional 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 Extension Modifier and Type Class Description (package private) classDisabledConditionExecutionConditionthat supports the@Disabledannotation.(package private) classRepeatedTestExtensionTestTemplateInvocationContextProviderthat supports the@RepeatedTestannotation.(package private) classRepetitionInfoParameterResolver(package private) classTempDirectoryTempDirectoryis 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) classTestInfoParameterResolverParameterResolverthat resolves theTestInfofor the currently executing test.(package private) classTestReporterParameterResolverParameterResolverthat injects aTestReporter.(package private) classTimeoutExtensionFields in org.junit.jupiter.engine.extension with type parameters of type Extension Modifier and Type Field Description private static java.util.List<Extension>MutableExtensionRegistry. DEFAULT_EXTENSIONSprivate java.util.List<Extension>MutableExtensionRegistry. registeredExtensionsprivate java.util.Set<java.lang.Class<? extends Extension>>MutableExtensionRegistry. registeredExtensionTypesMethods in org.junit.jupiter.engine.extension with type parameters of type Extension Modifier and Type Method Description default <E extends Extension>
java.util.List<E>ExtensionRegistry. getExtensions(java.lang.Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors.default <E extends Extension>
java.util.List<E>ExtensionRegistry. getReversedExtensions(java.lang.Class<E> extensionType)Get allExtensionsof the specified type that are present in this registry or one of its ancestors, in reverse order.<E extends Extension>
java.util.stream.Stream<E>ExtensionRegistry. stream(java.lang.Class<E> extensionType)Stream allExtensionsof the specified type that are present in this registry or one of its ancestors.<E extends Extension>
java.util.stream.Stream<E>MutableExtensionRegistry. stream(java.lang.Class<E> extensionType)private <E extends Extension>
java.util.stream.Stream<E>MutableExtensionRegistry. streamLocal(java.lang.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 Extension Modifier and Type Method Description java.util.List<Extension>RepeatedTestInvocationContext. getAdditionalExtensions()Methods in org.junit.jupiter.engine.extension with parameters of type Extension Modifier and Type Method Description private voidMutableExtensionRegistry. registerDefaultExtension(Extension extension)voidExtensionRegistrar. registerExtension(Extension extension, java.lang.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, java.lang.Object source)Method parameters in org.junit.jupiter.engine.extension with type arguments of type Extension Modifier and Type Method Description static MutableExtensionRegistryMutableExtensionRegistry. createRegistryFrom(MutableExtensionRegistry parentRegistry, java.util.List<java.lang.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(java.lang.Class<? extends Extension> extensionType)Determine if the supplied type is already registered in this registry or in a parent registry.(package private) voidMutableExtensionRegistry. registerExtension(java.lang.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 Extension Modifier and Type Class Description classIgnoreConditionExecutionConditionthat supports JUnit 4's@Ignoreannotation. -
Uses of Extension in org.junit.jupiter.migrationsupport.rules
Classes in org.junit.jupiter.migrationsupport.rules that implement Extension Modifier and Type Class Description classExpectedExceptionSupportThisExtensionprovides native support for theExpectedExceptionrule from JUnit 4.classExternalResourceSupportThisExtensionprovides native support for subclasses of theExternalResourcerule from JUnit 4.(package private) classTestRuleSupportclassVerifierSupportThisExtensionprovides 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 Extension Modifier and Type Class Description (package private) classParameterizedTestExtension(package private) classParameterizedTestParameterResolverMethods in org.junit.jupiter.params that return types with arguments of type Extension Modifier and Type Method Description java.util.List<Extension>ParameterizedTestInvocationContext. getAdditionalExtensions()
-