Package | Description |
---|---|
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.
|
Modifier and Type | Method and Description |
---|---|
default TestInstances |
ExtensionContext.getRequiredTestInstances()
Get the required test instances associated with the current test
or container.
|
Modifier and Type | Method and Description |
---|---|
java.util.Optional<TestInstances> |
ExtensionContext.getTestInstances()
Get the test instances associated with the current test or container,
if available.
|
Modifier and Type | Field and Description |
---|---|
private TestInstances |
TestTemplateExtensionContext.testInstances |
private TestInstances |
MethodExtensionContext.testInstances |
private TestInstances |
ClassExtensionContext.testInstances |
Modifier and Type | Method and Description |
---|---|
java.util.Optional<TestInstances> |
TestTemplateExtensionContext.getTestInstances() |
java.util.Optional<TestInstances> |
MethodExtensionContext.getTestInstances() |
java.util.Optional<TestInstances> |
JupiterEngineExtensionContext.getTestInstances() |
java.util.Optional<TestInstances> |
DynamicExtensionContext.getTestInstances() |
java.util.Optional<TestInstances> |
ClassExtensionContext.getTestInstances() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
MethodExtensionContext.setTestInstances(TestInstances testInstances) |
(package private) void |
ClassExtensionContext.setTestInstances(TestInstances testInstances) |
Modifier and Type | Method and Description |
---|---|
protected TestInstances |
ClassBasedTestDescriptor.instantiateTestClass(java.util.Optional<TestInstances> outerInstances,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
Constructor and Description |
---|
TestTemplateExtensionContext(ExtensionContext parent,
EngineExecutionListener engineExecutionListener,
TestTemplateTestDescriptor testDescriptor,
JupiterConfiguration configuration,
TestInstances testInstances) |
Modifier and Type | Class and Description |
---|---|
class |
DefaultTestInstances |
Modifier and Type | Method and Description |
---|---|
TestInstances |
TestInstancesProvider.getTestInstances(ExtensionRegistry extensionRegistry,
ExtensionRegistrar extensionRegistrar) |
default TestInstances |
TestInstancesProvider.getTestInstances(MutableExtensionRegistry extensionRegistry) |
Modifier and Type | Method and Description |
---|---|
static DefaultTestInstances |
DefaultTestInstances.of(TestInstances testInstances,
java.lang.Object instance) |