TestDescriptor for tests based on nested (but not static) Java classes.
The default display name for a non-static nested test class is the simple name of the class.
| Modifier and Type | Field and Description |
|---|---|
| public static final String |
| Access | Constructor and Description |
|---|---|
| public | NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration)
|
| private | NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration)
|
| Modifier and Type | Method and Description |
|---|---|
| public List | |
| public static List | |
| public Function | |
| public final Set | getTags()
Overrides org. Implements org. Get the set of tags associated with this descriptor. |
| protected TestInstances | instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionContextSupplier extensionContext, ExtensionRegistry registry, JupiterEngineExecutionContext context)
Implements abstract org.
|
| protected NestedClassTestDescriptor | withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)
Implements abstract org. Returns shallow copy (without children) of this descriptor with the supplied unique ID. |
| SEGMENT_TYPE | back to summary |
|---|---|
| public static final String SEGMENT_TYPE | |
| NestedClassTestDescriptor | back to summary |
|---|---|
| public NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, Supplier<List<Class<?>>> enclosingInstanceTypes, JupiterConfiguration configuration) | |
| NestedClassTestDescriptor | back to summary |
|---|---|
| private NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, String displayName, JupiterConfiguration configuration) | |
| getEnclosingTestClasses | back to summary |
|---|---|
| public List Implements org.
| |
| getEnclosingTestClasses | back to summary |
|---|---|
| public static List | |
| getResourceLocksProviderEvaluator | back to summary |
|---|---|
| public Function Implements org.
| |
| getTags | back to summary |
|---|---|
| public final Set Overrides org. Implements org. Doc from org. Get the set of tags associated with this descriptor.
| |
| instantiateTestClass | back to summary |
|---|---|
| protected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionContextSupplier extensionContext, ExtensionRegistry registry, JupiterEngineExecutionContext context) Implements abstract org.
| |
| withUniqueId | back to summary |
|---|---|
| protected NestedClassTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer) Implements abstract org. Doc from org. Returns shallow copy (without children) of this descriptor with the supplied unique ID.
| |