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 | Description |
---|---|---|
static TestInstance.Lifecycle |
TestInstance.Lifecycle.valueOf(java.lang.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 | Description |
---|---|---|
java.util.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 | Description |
---|---|---|
java.util.Optional<TestInstance.Lifecycle> |
ClassExtensionContext.getTestInstanceLifecycle() |
|
java.util.Optional<TestInstance.Lifecycle> |
JupiterEngineExtensionContext.getTestInstanceLifecycle() |
|
java.util.Optional<TestInstance.Lifecycle> |
MethodExtensionContext.getTestInstanceLifecycle() |
Constructor | Description |
---|---|
ClassExtensionContext(ExtensionContext parent,
EngineExecutionListener engineExecutionListener,
ClassTestDescriptor testDescriptor,
TestInstance.Lifecycle lifecycle,
ConfigurationParameters configurationParameters,
ThrowableCollector throwableCollector) |