@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.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
lifecycle
configuration
children
Constructor and Description |
---|
NestedClassTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
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, setDefaultChildExecutionMode
cleanUp, executeAndMaskThrowable, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getTags, shouldBeSkipped, toExecutionMode
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
around, execute, nodeFinished, nodeSkipped
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
public NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration)
public final Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class ClassTestDescriptor
null
but potentially emptyTestTag
protected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionContext extensionContext)
instantiateTestClass
in class ClassTestDescriptor
Copyright © 2021. All rights reserved.