| Modifier and Type | Field and Description |
|---|---|
| private static final ExtensionContext. | |
| private final JupiterConfiguration | |
| private final EngineExecutionListener | |
| private final ExecutableInvoker | |
| private final ExtensionRegistry | |
| private final LauncherStoreFacade | |
| private static final Logger | |
| private final @Nullable ExtensionContext | |
| private final Set | |
| private final T | |
| private final NamespacedHierarchicalStore |
| Access | Constructor and Description |
|---|---|
| pack-priv | AbstractExtensionContext(@Nullable ExtensionContext parent, EngineExecutionListener engineExecutionListener, T testDescriptor, JupiterConfiguration configuration, ExtensionRegistry extensionRegistry, LauncherStoreFacade launcherStoreFacade)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | close()
Implements java. Closes this resource, relinquishing any underlying resources. |
| private <N> NamespacedHierarchicalStore. | |
| private Path | |
| public Optional | getConfigurationParameter(String key)
Implements org. Get the configuration parameter stored under the specified |
| public <V> Optional | getConfigurationParameter(String key, Function<? super String, ? extends @Nullable V> transformer)
Implements org. Get and transform the configuration parameter stored under the specified
|
| public String | getDisplayName()
Implements org. Get the display name for the current test or container. |
| public ExecutableInvoker | getExecutableInvoker()
Implements org. Get an |
| public ExecutionMode | getExecutionMode()
Implements org. Get the |
| public <E extends Extension> List | getExtensions(Class<E> extensionType)
Implements org. Returns a list of registered extension at this context of the passed |
| public Optional | getParent()
Implements org. Get the parent extension context, if available. |
| private NamespacedHierarchicalStore | |
| protected abstract Node. | |
| public ExtensionContext | getRoot()
Implements org. Get the root |
| public ExtensionContext. | getStore(ExtensionContext.
Implements org. |
| public ExtensionContext. | getStore(ExtensionContext.
Implements org. Returns the store for supplied scope and namespace. |
| public Set | getTags()
Implements org. Get the set of all tags for the current test or container. |
| protected T | |
| public String | getUniqueId()
Implements org. Get the unique ID of the current test or container. |
| public void | publishDirectory(String name, ThrowingConsumer<Path> action)
Implements org. Publish a directory with the supplied name written by the supplied action and attach it to the current test or container. |
| public void | publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action)
Implements org. Publish a file with the supplied name written by the supplied action and attach it to the current test or container. |
| private void | publishFileEntry(String name, ThrowingConsumer<Path> action, Function<Path, FileEntry> fileEntryCreator)
|
| public void | publishReportEntry(Map<String, String> values)
Implements org. Publish a map of key-value pairs to be consumed by an
|
| private ExecutionMode |
| CLOSEABLE_RESOURCE_LOGGING_NAMESPACE | back to summary |
|---|---|
| private static final ExtensionContext. | |
| configuration | back to summary |
|---|---|
| private final JupiterConfiguration configuration | |
| engineExecutionListener | back to summary |
|---|---|
| private final EngineExecutionListener engineExecutionListener | |
| executableInvoker | back to summary |
|---|---|
| private final ExecutableInvoker executableInvoker | |
| extensionRegistry | back to summary |
|---|---|
| private final ExtensionRegistry extensionRegistry | |
| launcherStoreFacade | back to summary |
|---|---|
| private final LauncherStoreFacade launcherStoreFacade | |
| LOGGER | back to summary |
|---|---|
| private static final Logger LOGGER | |
| parent | back to summary |
|---|---|
| private final @Nullable ExtensionContext parent | |
| tags | back to summary |
|---|---|
| private final Set<String> tags | |
| testDescriptor | back to summary |
|---|---|
| private final T testDescriptor | |
| valuesStore | back to summary |
|---|---|
| private final NamespacedHierarchicalStore<Namespace> valuesStore | |
| AbstractExtensionContext | back to summary |
|---|---|
| pack-priv AbstractExtensionContext(@Nullable ExtensionContext parent, EngineExecutionListener engineExecutionListener, T testDescriptor, JupiterConfiguration configuration, ExtensionRegistry extensionRegistry, LauncherStoreFacade launcherStoreFacade) | |
| close | back to summary |
|---|---|
| public void close() Implements java. Doc from java. Closes this resource, relinquishing any underlying resources.
This method is invoked automatically on objects managed by the
| |
| createCloseAction | back to summary |
|---|---|
private <N> NamespacedHierarchicalStore.
| |
| createOutputDirectory | back to summary |
|---|---|
| private Path createOutputDirectory() | |
| getConfigurationParameter | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Get the configuration parameter stored under the specified If no such key is present in the
| |
| getConfigurationParameter | back to summary |
|---|---|
| public <V> Optional Implements org. Doc from org. Get and transform the configuration parameter stored under the specified
If no such key is present in the In case the transformer throws an exception, it will be wrapped in a
| |
| getDisplayName | back to summary |
|---|---|
| public String getDisplayName() Implements org. Doc from org. Get the display name for the current test or container. The display name is either a default name or a custom name configured
via For details on default display names consult the Javadoc for
Note that display names are typically used for test reporting in IDEs and build tools and may contain spaces, special characters, and even emoji.
| |
| getExecutableInvoker | back to summary |
|---|---|
| public ExecutableInvoker getExecutableInvoker() Implements org. Doc from org. Get an
| |
| getExecutionMode | back to summary |
|---|---|
| public ExecutionMode getExecutionMode() Implements org. Doc from org. Get the
| |
| getExtensions | back to summary |
|---|---|
| public <E extends Extension> List Implements org. Doc from org. Returns a list of registered extension at this context of the passed
| |
| getParent | back to summary |
|---|---|
| public Optional Implements org. Doc from org. Get the parent extension context, if available.
| |
| getParentStore | back to summary |
|---|---|
| private NamespacedHierarchicalStore | |
| getPlatformExecutionMode | back to summary |
|---|---|
| protected abstract Node. | |
| getRoot | back to summary |
|---|---|
| public ExtensionContext getRoot() Implements org. Doc from org. Get the root
| |
| getStore | back to summary |
|---|---|
| public ExtensionContext. Implements org. Doc from org. Get the Use A store is bound to its extension context lifecycle. When an extension
context lifecycle ends it closes its associated store. All stored values
that are instances of
| |
| getStore | back to summary |
|---|---|
| public ExtensionContext. Implements org. Doc from org. Returns the store for supplied scope and namespace. If
| |
| getTags | back to summary |
|---|---|
| public Set Implements org. Doc from org. Get the set of all tags for the current test or container. Tags may be declared directly on the test element or inherited from an outer context.
| |
| getTestDescriptor | back to summary |
|---|---|
| protected T getTestDescriptor() | |
| getUniqueId | back to summary |
|---|---|
| public String getUniqueId() Implements org. Doc from org. Get the unique ID of the current test or container.
| |
| publishDirectory | back to summary |
|---|---|
| public void publishDirectory(String name, ThrowingConsumer<Path> action) Implements org. Doc from org. Publish a directory with the supplied name written by the supplied action and attach it to the current test or container. The directory will be resolved and created in the report output directory prior to invoking the supplied action, if it does not already exist.
| |
| publishFile | back to summary |
|---|---|
| public void publishFile(String name, MediaType mediaType, ThrowingConsumer<Path> action) Implements org. Doc from org. Publish a file with the supplied name written by the supplied action and attach it to the current test or container. The file will be resolved in the report output directory prior to invoking the supplied action.
| |
| publishFileEntry | back to summary |
|---|---|
| private void publishFileEntry(String name, ThrowingConsumer<Path> action, Function<Path, FileEntry> fileEntryCreator) | |
| publishReportEntry | back to summary |
|---|---|
| public void publishReportEntry(Map<String, String> values) Implements org. Doc from org. Publish a map of key-value pairs to be consumed by an
| |
| toJupiterExecutionMode | back to summary |
|---|---|
| private ExecutionMode toJupiterExecutionMode(Node. | |