Access | Constructor and Description |
---|---|
pack-priv | DynamicExtensionContext(ExtensionContext parent, EngineExecutionListener engineExecutionListener, DynamicNodeTestDescriptor testDescriptor, JupiterConfiguration configuration, ExecutableInvoker executableInvoker)
|
Modifier and Type | Method and Description |
---|---|
public Optional | getElement()
Implements org. AnnotatedElement corresponding to the current extension
context, if available.
|
public Optional | getExecutionException()
Implements org. ExtensionContext , if available.
|
protected Node. | |
public Optional | getTestClass()
Implements org. Class associated with the current test or container,
if available.
|
public Optional | getTestInstance()
Implements org. |
public Optional | getTestInstanceLifecycle()
Implements org. Lifecycle of the test
instance associated with the current test or container, if available.
|
public Optional | getTestInstances()
Implements org. |
public Optional | getTestMethod()
Implements org. Method associated with the current test, if available.
|
DynamicExtensionContext | back to summary |
---|---|
pack-priv DynamicExtensionContext(ExtensionContext parent, EngineExecutionListener engineExecutionListener, DynamicNodeTestDescriptor testDescriptor, JupiterConfiguration configuration, ExecutableInvoker executableInvoker) |
getElement | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the For example, if the current extension context encapsulates a test
class, test method, test factory method, or test template method, the
annotated element will be the corresponding Favor this method over more specific methods whenever the
|
getExecutionException | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the exception that was thrown during execution of the test or container
associated with this This method is typically used for logging and tracing purposes. If you
wish to actually handle an exception thrown during test execution,
implement the Unlike the exception passed to a Note, however, that this method will never return an exception
swallowed by a |
getPlatformExecutionMode | back to summary |
---|---|
protected Node. Implements abstract org.
|
getTestClass | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the |
getTestInstance | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the test instance associated with the current test or container, if available. |
getTestInstanceLifecycle | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the
|
getTestInstances | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the test instances associated with the current test or container, if available. While top-level tests only have a single test instance, nested tests have one additional instance for each enclosing test class.
|
getTestMethod | back to summary |
---|---|
public Optional Implements org. Doc from org. Get the |