@API(status=INTERNAL, since="5.0") public class TestTemplateInvocationTestDescriptor extends TestMethodTestDescriptor
TestDescriptor
for a @TestTemplate
invocation.Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
static String |
SEGMENT_TYPE |
configuration
children
Modifier and Type | Method and Description |
---|---|
void |
after(JupiterEngineExecutionContext context)
Execute the after behavior of this node.
|
Set<ExclusiveResource> |
getExclusiveResources()
Get the set of exclusive resources
required to execute this node.
|
String |
getLegacyReportingName()
Get the name of this descriptor in a format that is suitable for legacy
reporting infrastructure — for example, for reporting systems built
on the Ant-based XML reporting format for JUnit 4.
|
protected ExtensionRegistry |
populateNewExtensionRegistry(JupiterEngineExecutionContext context) |
execute, getType, invokeTestMethod, nodeFinished, nodeSkipped, prepare
getExplicitExecutionMode, getTags, getTestClass, getTestMethod
cleanUp, executeAndMaskThrowable, getDefaultChildExecutionMode, 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
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
public static final String SEGMENT_TYPE
public Set<ExclusiveResource> getExclusiveResources()
Node
The default implementation returns an empty set.
getExclusiveResources
in interface Node<JupiterEngineExecutionContext>
getExclusiveResources
in class MethodBasedTestDescriptor
null
but potentially emptyExclusiveResource
public String getLegacyReportingName()
TestDescriptor
The default implementation simply delegates to TestDescriptor.getDisplayName()
.
getLegacyReportingName
in interface TestDescriptor
getLegacyReportingName
in class MethodBasedTestDescriptor
null
or blankprotected ExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context)
populateNewExtensionRegistry
in class TestMethodTestDescriptor
public void after(JupiterEngineExecutionContext context)
Node
This method will be called once after execution of this node.
The default implementation does nothing.
context
- the context to execute inNode.before(C)
,
Node.execute(C, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor)
Copyright © 2021. All rights reserved.