Node<JupiterEngineExecutionContext>
, TestDescriptor
@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.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
children
Constructor | Description |
---|---|
NestedClassTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass) |
Modifier and Type | Method | Description |
---|---|---|
java.util.Set<TestTag> |
getTags() |
Get the set of tags associated with this descriptor.
|
protected java.lang.Object |
instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionContext extensionContext) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
after, before, getLegacyReportingName, getTestClass, getType, prepare
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldBeSkipped
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
public NestedClassTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass)
public final java.util.Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class ClassTestDescriptor
null
but potentially emptyTestTag
protected java.lang.Object instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
instantiateTestClass
in class ClassTestDescriptor