@API(status=INTERNAL,
since="5.0")
public class NestedClassTestDescriptor
extends ClassTestDescriptor
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.
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private java.util.Set<TestTag> |
tags
Set of local class-level tags; does not contain tags from parent.
|
lifecycleconfigurationchildren| Constructor and Description |
|---|
NestedClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
JupiterConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<TestTag> |
getTags()
Get the set of tags associated with this descriptor.
|
protected TestInstances |
instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
after, before, getDefaultChildExecutionMode, getExclusiveResources, getExplicitExecutionMode, getLegacyReportingName, getTestClass, getType, instantiateTestClass, prepare, setDefaultChildExecutionModecleanUp, executeAndMaskThrowable, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getTags, shouldBeSkipped, toExecutionModeaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaround, execute, nodeFinished, nodeSkippedaccept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, pruneprivate final java.util.Set<TestTag> tags
public NestedClassTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, JupiterConfiguration configuration)
public final java.util.Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class ClassTestDescriptornull
but potentially emptyTestTagprotected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
instantiateTestClass in class ClassTestDescriptor