| Package | Description |
|---|---|
| org.junit.jupiter.api |
JUnit Jupiter API for writing tests.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
static TestInstance.Lifecycle |
TestInstance.Lifecycle.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TestInstance.Lifecycle[] |
TestInstance.Lifecycle.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<TestInstance.Lifecycle> |
ExtensionContext.getTestInstanceLifecycle()
Get the
TestInstance.Lifecycle of the test
instance associated with the current test or container, if available. |
| Modifier and Type | Method and Description |
|---|---|
Optional<TestInstance.Lifecycle> |
MethodExtensionContext.getTestInstanceLifecycle() |
Optional<TestInstance.Lifecycle> |
JupiterEngineExtensionContext.getTestInstanceLifecycle() |
Optional<TestInstance.Lifecycle> |
ClassExtensionContext.getTestInstanceLifecycle() |
| Constructor and Description |
|---|
ClassExtensionContext(ExtensionContext parent,
EngineExecutionListener engineExecutionListener,
ClassTestDescriptor testDescriptor,
TestInstance.Lifecycle lifecycle,
ConfigurationParameters configurationParameters,
ThrowableCollector throwableCollector) |
Copyright © 2020. All rights reserved.