Uses of Interface
org.junit.jupiter.api.extension.Extension
-
Packages that use Extension Package Description 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.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@Ignore
annotation) within JUnit Jupiter.org.junit.jupiter.migrationsupport.rules 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.extension Modifier and Type Interface Description interface
AfterAllCallback
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
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
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
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
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
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
ExecutionCondition
defines theExtension
API for programmatic, conditional test execution.interface
InvocationInterceptor
InvocationInterceptor
defines the API forExtensions
that wish to intercept calls to test code.interface
LifecycleMethodExecutionExceptionHandler
LifecycleMethodExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during the execution of@BeforeAll
,@BeforeEach
,@AfterEach
, and@AfterAll
lifecycle methods.interface
ParameterResolver
ParameterResolver
defines the API forExtensions
that wish to dynamically resolve arguments for parameters at runtime.interface
TestExecutionExceptionHandler
TestExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during test execution.interface
TestInstanceFactory
interface
TestInstancePostProcessor
TestInstancePostProcessor
defines the API forExtensions
that wish to post-process test instances.interface
TestInstancePreDestroyCallback
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
TestTemplateInvocationContextProvider
defines the API forExtensions
that wish to provide one or multiple contexts for the invocation of a@TestTemplate
method.interface
TestWatcher
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 Extension Modifier and Type Method Description default List<Extension>
TestTemplateInvocationContext. getAdditionalExtensions()
Get the additional extensions for this invocation.Class<? extends Extension>[]
value()
An array of one or moreExtension
classes 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 class
TypeBasedParameterResolver<T>
ParameterResolver
adapter 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.execution Modifier and Type Interface Description interface
AfterEachMethodAdapter
Functional interface for registering an@AfterEach
method as a pseudo-extension.interface
BeforeEachMethodAdapter
Functional interface for registering a@BeforeEach
method 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 Extension Modifier and Type Method Description default <E extends Extension>
List<E>ExtensionRegistry. getExtensions(Class<E> extensionType)
Get allExtensions
of the specified type that are present in this registry or one of its ancestors.default <E extends Extension>
List<E>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.<E extends Extension>
Stream<E>ExtensionRegistry. stream(Class<E> extensionType)
Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.<E extends Extension>
Stream<E>MutableExtensionRegistry. stream(Class<E> extensionType)
Methods in org.junit.jupiter.engine.extension with parameters of type Extension Modifier and Type Method Description void
ExtensionRegistrar. registerExtension(Extension extension, Object source)
Register the suppliedExtension
, without checking if an extension of that type has already been registered.void
MutableExtensionRegistry. registerExtension(Extension extension, Object source)
Method parameters in org.junit.jupiter.engine.extension with type arguments of type Extension Modifier and Type Method Description static 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. -
Uses of Extension in org.junit.jupiter.migrationsupport.conditions
Classes in org.junit.jupiter.migrationsupport.conditions that implement Extension Modifier and Type Class Description class
IgnoreCondition
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 Extension Modifier and Type Class Description class
ExpectedExceptionSupport
ThisExtension
provides native support for theExpectedException
rule from JUnit 4.class
ExternalResourceSupport
ThisExtension
provides native support for subclasses of theExternalResource
rule from JUnit 4.class
VerifierSupport
ThisExtension
provides native support for subclasses of theVerifier
rule from JUnit 4.
-