Class TestTemplateInvocationTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor
- All Implemented Interfaces:
TestClassAware, Validatable, Node<JupiterEngineExecutionContext>, TestDescriptor
@API(status=INTERNAL,
since="5.0")
public class TestTemplateInvocationTestDescriptor
extends TestMethodTestDescriptor
TestDescriptor
for a @TestTemplate
invocation.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface Node
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C>, Node.SkipResult
Nested classes/interfaces inherited from interface TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor
-
Field Summary
FieldsFields inherited from class AbstractTestDescriptor
children
-
Method Summary
Modifier and TypeMethodDescriptionvoid
after
(JupiterEngineExecutionContext context) Execute the after behavior of this node.default Stream
<ExclusiveResource> default Stream
<ExclusiveResource> determineOwnExclusiveResources
(Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> providerToLocks) Get the set of exclusive resources required to execute this node.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 MutableExtensionRegistry
protected void
prepareExtensionContext
(ExtensionContext extensionContext) protected TestTemplateInvocationTestDescriptor
withUniqueId
(UnaryOperator<UniqueId> uniqueIdTransformer) Returns shallow copy (without children) of this descriptor with the supplied unique ID.Methods inherited from class TestMethodTestDescriptor
cleanUp, execute, getType, invokeTestMethod, nodeFinished, prepare
Methods inherited from class MethodBasedTestDescriptor
getEnclosingTestClasses, getExclusiveResourceCollector, getExplicitExecutionMode, getResourceLocksProviderEvaluator, getTags, getTestClass, getTestMethod, invokeTestWatchers, nodeSkipped, validate
Methods inherited from class JupiterTestDescriptor
copyIncludingDescendants, getExecutionMode, shouldBeSkipped, toExecutionMode
Methods inherited from class AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, orderChildren, removeChild, removeFromHierarchy, setParent, toString
Methods inherited from interface TestDescriptor
accept, addChild, findByUniqueId, getAncestors, getChildren, getDescendants, getDisplayName, getParent, getSource, getUniqueId, isContainer, isRoot, isTest, mayRegisterTests, orderChildren, prune, removeChild, removeFromHierarchy, setParent
-
Field Details
-
SEGMENT_TYPE
- See Also:
-
-
Method Details
-
withUniqueId
protected TestTemplateInvocationTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer) Description copied from class:JupiterTestDescriptor
Returns shallow copy (without children) of this descriptor with the supplied unique ID.- Overrides:
withUniqueId
in classTestMethodTestDescriptor
- Returns:
- shallow copy (without children) of this descriptor with the supplied unique ID
-
getExclusiveResources
Description copied from interface:Node
Get the set of exclusive resources required to execute this node.The default implementation returns an empty set.
- Specified by:
getExclusiveResources
in interfaceNode<JupiterEngineExecutionContext>
- Overrides:
getExclusiveResources
in classJupiterTestDescriptor
- Returns:
- the set of exclusive resources required by this node; never
null
but potentially empty - See Also:
-
getLegacyReportingName
Description copied from interface:TestDescriptor
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.The default implementation delegates to
TestDescriptor.getDisplayName()
.- Specified by:
getLegacyReportingName
in interfaceTestDescriptor
- Overrides:
getLegacyReportingName
in classMethodBasedTestDescriptor
- Returns:
- the legacy reporting name; never
null
or blank
-
populateNewExtensionRegistry
protected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context) - Overrides:
populateNewExtensionRegistry
in classTestMethodTestDescriptor
-
prepareExtensionContext
- Overrides:
prepareExtensionContext
in classTestMethodTestDescriptor
-
after
-
determineExclusiveResources
-
determineOwnExclusiveResources
default Stream<ExclusiveResource> determineOwnExclusiveResources(Function<ResourceLocksProvider, Set<ResourceLocksProvider.Lock>> providerToLocks)
-