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.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
@Ignore annotation) 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.
|
Modifier and Type | Class and Description |
---|---|
(package private) class |
DisabledIfEnvironmentVariableCondition
|
(package private) class |
DisabledIfSystemPropertyCondition
|
(package private) class |
DisabledOnJreCondition
|
(package private) class |
DisabledOnOsCondition
|
(package private) class |
EnabledIfEnvironmentVariableCondition
|
(package private) class |
EnabledIfSystemPropertyCondition
|
(package private) class |
EnabledOnJreCondition
|
(package private) class |
EnabledOnOsCondition
|
Modifier and Type | Interface and 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 |
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 and Description |
---|---|
default java.util.List<Extension> |
TestTemplateInvocationContext.getAdditionalExtensions()
Get the additional extensions for this invocation.
|
Modifier and Type | Method and Description |
---|---|
private <T extends Extension> |
TestMethodTestDescriptor.invokeAllAfterMethodsOrCallbacks(JupiterEngineExecutionContext context,
java.util.function.BiFunction<ExtensionContext,T,ThrowableCollector.Executable> generator,
java.lang.Class<T> type) |
private <T extends Extension> |
TestMethodTestDescriptor.invokeBeforeMethodsOrCallbacksUntilExceptionOccurs(JupiterEngineExecutionContext context,
java.util.function.BiFunction<ExtensionContext,T,ThrowableCollector.Executable> generator,
java.lang.Class<T> type) |
Modifier and Type | Method and Description |
---|---|
private void |
ClassTestDescriptor.registerMethodsAsExtensions(java.util.List<java.lang.reflect.Method> methods,
ExtensionRegistry registry,
java.util.function.Function<java.lang.reflect.Method,Extension> extensionSynthesizer) |
Modifier and Type | Interface and 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 | Class and Description |
---|---|
(package private) class |
DisabledCondition
ExecutionCondition that supports the @Disabled annotation. |
(package private) class |
RepeatedTestExtension
TestTemplateInvocationContextProvider that supports the
@RepeatedTest annotation. |
(package private) class |
RepetitionInfoParameterResolver
|
(package private) class |
ScriptExecutionCondition
|
(package private) class |
TempDirectory
TempDirectory is 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) class |
TestInfoParameterResolver
ParameterResolver that resolves the TestInfo for
the currently executing test. |
(package private) class |
TestReporterParameterResolver
ParameterResolver that injects a TestReporter . |
Modifier and Type | Field and Description |
---|---|
private static java.util.List<Extension> |
ExtensionRegistry.DEFAULT_EXTENSIONS |
private java.util.List<Extension> |
ExtensionRegistry.registeredExtensions |
private java.util.Set<java.lang.Class<? extends Extension>> |
ExtensionRegistry.registeredExtensionTypes |
Modifier and Type | Method and Description |
---|---|
<E extends Extension> |
ExtensionRegistry.getExtensions(java.lang.Class<E> extensionType)
Get all
Extensions of the specified type that are present
in this registry or one of its ancestors. |
<E extends Extension> |
ExtensionRegistry.getReversedExtensions(java.lang.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(java.lang.Class<E> extensionType)
Stream all
Extensions of the specified type that are present
in this registry or one of its ancestors. |
private <E extends Extension> |
ExtensionRegistry.streamLocal(java.lang.Class<E> extensionType)
Stream all
Extensions of the specified type that are present
in this registry. |
Modifier and Type | Method and Description |
---|---|
java.util.List<Extension> |
RepeatedTestInvocationContext.getAdditionalExtensions() |
Modifier and Type | Method and Description |
---|---|
private void |
ExtensionRegistry.registerDefaultExtension(Extension extension) |
private void |
ExtensionRegistry.registerExtension(Extension extension) |
void |
ExtensionRegistry.registerExtension(Extension extension,
java.lang.Object source)
Register the supplied
Extension in this registry, without checking
if an extension of that type already exists in this registry. |
Modifier and Type | Method and Description |
---|---|
static ExtensionRegistry |
ExtensionRegistry.createRegistryFrom(ExtensionRegistry 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 boolean |
ExtensionRegistry.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) void |
ExtensionRegistry.registerExtension(java.lang.Class<? extends Extension> extensionType)
Instantiate an extension of the given type using its default constructor
and register it in this registry.
|
Modifier and Type | Class and Description |
---|---|
class |
IgnoreCondition
ExecutionCondition that supports JUnit 4's @Ignore
annotation. |
Modifier and Type | Class and 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. |
(package private) class |
TestRuleSupport |
class |
VerifierSupport
This
Extension provides native support for subclasses of
the Verifier rule from JUnit 4. |
Modifier and Type | Class and Description |
---|---|
(package private) class |
ParameterizedTestExtension |
(package private) class |
ParameterizedTestParameterResolver |
Modifier and Type | Method and Description |
---|---|
java.util.List<Extension> |
ParameterizedTestInvocationContext.getAdditionalExtensions() |