Node<JupiterEngineExecutionContext>
, TestDescriptor
@API(status=INTERNAL, since="5.0") public class NestedClassTestDescriptor extends ClassBasedTestDescriptor
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
Modifier and Type | Field | Description |
---|---|---|
static String |
SEGMENT_TYPE |
children
lifecycle, tags
Constructor | Description |
---|---|
NestedClassTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
JupiterConfiguration configuration) |
Modifier and Type | Method | Description |
---|---|---|
List<Class<?>> |
getEnclosingTestClasses() |
|
Set<TestTag> |
getTags() |
Get the set of tags associated with this descriptor.
|
protected TestInstances |
instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext,
ExtensionRegistry registry,
ExtensionRegistrar registrar,
ExtensionContext extensionContext) |
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
after, before, getDefaultChildExecutionMode, getExclusiveResources, getExplicitExecutionMode, getLegacyReportingName, getTestClass, getType, instantiateTestClass, prepare, setDefaultChildExecutionMode
cleanUp, getExecutionMode, shouldBeSkipped, toExecutionMode
around, execute, nodeFinished, nodeSkipped
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
public static final String SEGMENT_TYPE
public NestedClassTestDescriptor(UniqueId uniqueId, Class<?> testClass, JupiterConfiguration configuration)
public final Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class AbstractTestDescriptor
null
but potentially emptyTestTag
public List<Class<?>> getEnclosingTestClasses()
getEnclosingTestClasses
in class ClassBasedTestDescriptor
protected TestInstances instantiateTestClass(JupiterEngineExecutionContext parentExecutionContext, ExtensionRegistry registry, ExtensionRegistrar registrar, ExtensionContext extensionContext)
instantiateTestClass
in class ClassBasedTestDescriptor
Copyright © 2019. All rights reserved.