Package | Description |
---|---|
org.junit.jupiter.api.extension |
JUnit Jupiter API 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.
|
Modifier and Type | Interface | Description |
---|---|---|
interface |
AfterAllCallback |
AfterAllCallback defines the API for Extensions
that wish to provide additional behavior to test containers after all tests
have been invoked. |
interface |
AfterEachCallback |
AfterEachCallback defines the API for Extensions
that wish to provide additional behavior to tests after each test method
has been invoked. |
interface |
AfterTestExecutionCallback |
AfterTestExecutionCallback defines the API for Extensions that wish to provide additional behavior to tests immediately
after each test has been executed. |
interface |
BeforeAllCallback |
BeforeAllCallback defines the API for Extensions
that wish to provide additional behavior to test containers before all tests
are invoked. |
interface |
BeforeEachCallback |
BeforeEachCallback defines the API for Extensions
that wish to provide additional behavior to tests before each test is invoked. |
interface |
BeforeTestExecutionCallback |
BeforeTestExecutionCallback defines the API for Extensions that wish to provide additional behavior to tests immediately
before each test is executed. |
interface |
ExecutionCondition |
ExecutionCondition defines the Extension API for
programmatic, conditional test execution. |
interface |
InvocationInterceptor |
InvocationInterceptor defines the API for Extensions that wish to intercept calls to test code. |
interface |
LifecycleMethodExecutionExceptionHandler |
LifecycleMethodExecutionExceptionHandler defines the API for
Extensions that wish to handle exceptions thrown during
the execution of @BeforeAll , @BeforeEach , @AfterEach ,
and @AfterAll lifecycle methods. |
interface |
ParameterResolver |
ParameterResolver defines the API for Extensions
that wish to dynamically resolve arguments for parameters
at runtime. |
interface |
TestExecutionExceptionHandler |
TestExecutionExceptionHandler defines the API for Extensions that wish to handle exceptions thrown during test execution. |
interface |
TestInstanceFactory |
|
interface |
TestInstancePostProcessor |
TestInstancePostProcessor defines the API for Extensions that wish to post-process test instances. |
interface |
TestTemplateInvocationContextProvider |
TestTemplateInvocationContextProvider defines the API for
Extensions that wish to provide one or multiple contexts
for the invocation of a
@TestTemplate method. |
interface |
TestWatcher |
TestWatcher defines the API for Extensions that
wish to process test results. |
Modifier and Type | Method | Description |
---|---|---|
default List<Extension> |
TestTemplateInvocationContext.getAdditionalExtensions() |
Get the additional extensions for this invocation.
|
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. |
Modifier and Type | Method | Description |
---|---|---|
default <E extends Extension> |
ExtensionRegistry.getExtensions(Class<E> extensionType) |
Get all
Extensions of the specified type that are present
in this registry or one of its ancestors. |
default <E extends Extension> |
ExtensionRegistry.getReversedExtensions(Class<E> extensionType) |
Get all
Extensions of the specified type that are present
in this registry or one of its ancestors, in reverse order. |
<E extends Extension> |
ExtensionRegistry.stream(Class<E> extensionType) |
Stream all
Extensions of the specified type that are present
in this registry or one of its ancestors. |
<E extends Extension> |
MutableExtensionRegistry.stream(Class<E> extensionType) |
Modifier and Type | Method | Description |
---|---|---|
void |
ExtensionRegistrar.registerExtension(Extension extension,
Object source) |
Register the supplied
Extension , without checking if an extension
of that type already exists. |
void |
MutableExtensionRegistry.registerExtension(Extension extension,
Object source) |
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.
|
Modifier and Type | Class | Description |
---|---|---|
class |
IgnoreCondition |
ExecutionCondition that supports JUnit 4's @Ignore
annotation. |
Modifier and Type | Class | Description |
---|---|---|
class |
ExpectedExceptionSupport |
This
Extension provides native support for the
ExpectedException rule from JUnit 4. |
class |
ExternalResourceSupport |
This
Extension provides native support for subclasses of
the ExternalResource rule from JUnit 4. |
class |
VerifierSupport |
This
Extension provides native support for subclasses of
the Verifier rule from JUnit 4. |
Copyright © 2019. All rights reserved.