Module org.junit.jupiter.engine
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:
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 org.junit.platform.engine.support.hierarchical.Node
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultNested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor -
Field Summary
FieldsFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(JupiterEngineExecutionContext context) Execute the after behavior of this node.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 MutableExtensionRegistryMethods inherited from class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
cleanUp, execute, getType, invokeTestMethod, nodeFinished, prepareMethods inherited from class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
getExplicitExecutionMode, getTags, getTestClass, getTestMethod, invokeTestWatchers, nodeSkippedMethods inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
getExecutionMode, shouldBeSkipped, toExecutionModeMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
SEGMENT_TYPE
- See Also:
-
-
Method Details
-
getExclusiveResources
Description copied from interface:NodeGet the set of exclusive resources required to execute this node.The default implementation returns an empty set.
- Specified by:
getExclusiveResourcesin interfaceNode<JupiterEngineExecutionContext>- Overrides:
getExclusiveResourcesin classMethodBasedTestDescriptor- Returns:
- the set of exclusive resources required by this node; never
nullbut potentially empty - See Also:
-
getLegacyReportingName
Description copied from interface:TestDescriptorGet 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:
getLegacyReportingNamein interfaceTestDescriptor- Overrides:
getLegacyReportingNamein classMethodBasedTestDescriptor- Returns:
- the legacy reporting name; never
nullor blank
-
populateNewExtensionRegistry
protected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context) - Overrides:
populateNewExtensionRegistryin classTestMethodTestDescriptor
-
after
Description copied from interface:NodeExecute the after behavior of this node.This method will be called once after execution of this node.
The default implementation does nothing.
- Parameters:
context- the context to execute in- See Also:
-