Uses of Interface
org.junit.jupiter.api.extension.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
Modifier and TypeInterfaceDescriptioninterface
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
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
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
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
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
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
defines theExtension
API for programmatic, conditional test execution.interface
InvocationInterceptor
defines the API forExtensions
that wish to intercept calls to test code.interface
LifecycleMethodExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during the execution of@BeforeAll
,@BeforeEach
,@AfterEach
, and@AfterAll
lifecycle methods.interface
ParameterResolver
defines the API forExtensions
that wish to dynamically resolve arguments for parameters at runtime.interface
TestExecutionExceptionHandler
defines the API forExtensions
that wish to handle exceptions thrown during test execution.interface
interface
TestInstancePostProcessor
defines the API forExtensions
that wish to post-process test instances.interface
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
defines the API forExtensions
that wish to provide one or multiple contexts for the invocation of a@TestTemplate
method.interface
TestWatcher
defines the API forExtensions
that wish to process test results.Modifier and TypeMethodDescriptionTestTemplateInvocationContext.getAdditionalExtensions()
Get the additional extensions for this invocation. -
Uses of Extension in org.junit.jupiter.api.extension.support
Modifier and TypeClassDescriptionclass
ParameterResolver
adapter which resolves a parameter based on its exact type. -
Uses of Extension in org.junit.jupiter.engine.execution
Modifier and TypeInterfaceDescriptioninterface
Functional interface for registering an@AfterEach
method as a pseudo-extension.interface
Functional interface for registering a@BeforeEach
method as a pseudo-extension. -
Uses of Extension in org.junit.jupiter.engine.extension
Modifier and TypeMethodDescriptionExtensionRegistry.getExtensions(Class<E> extensionType)
Get allExtensions
of the specified type that are present in this registry or one of its ancestors.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.Stream allExtensions
of the specified type that are present in this registry or one of its ancestors.Modifier and TypeMethodDescriptionvoid
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)
void
ExtensionRegistrar.registerSyntheticExtension(Extension extension, Object source)
Register the suppliedExtension
as a synthetic extension, without checking if an extension of that type has already been registered.void
MutableExtensionRegistry.registerSyntheticExtension(Extension extension, Object source)
Modifier and TypeMethodDescriptionstatic MutableExtensionRegistry
MutableExtensionRegistry.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.void
ExtensionRegistrar.registerExtension(Class<? extends Extension> extensionType)
Instantiate an extension of the given type using its default constructor and register it in the registry.void
MutableExtensionRegistry.registerExtension(Class<? extends Extension> extensionType)
-
Uses of Extension in org.junit.jupiter.migrationsupport.conditions
Modifier and TypeClassDescriptionclass
ExecutionCondition
that supports JUnit 4's@Ignore
annotation. -
Uses of Extension in org.junit.jupiter.migrationsupport.rules
Modifier and TypeClassDescriptionclass
ThisExtension
provides native support for theExpectedException
rule from JUnit 4.class
ThisExtension
provides native support for subclasses of theExternalResource
rule from JUnit 4.class
ThisExtension
provides native support for subclasses of theVerifier
rule from JUnit 4.