@API(status=INTERNAL, since="5.0") public class TestTemplateInvocationTestDescriptor extends TestMethodTestDescriptor
TestDescriptor
for a @TestTemplate
invocation.Node.DynamicTestExecutor, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
private TestTemplateInvocationContext |
invocationContext |
static java.lang.String |
SEGMENT_TYPE |
children
Constructor and Description |
---|
TestTemplateInvocationTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod,
TestTemplateInvocationContext invocationContext,
int index) |
Modifier and Type | Method and Description |
---|---|
void |
after(JupiterEngineExecutionContext context)
Execute the after behavior of this node.
|
protected ExtensionRegistry |
populateNewExtensionRegistry(JupiterEngineExecutionContext context) |
execute, getType, invokeTestMethod, prepare
getLegacyReportingName, getTags, getTestClass, getTestMethod
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldBeSkipped
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 java.lang.String SEGMENT_TYPE
private TestTemplateInvocationContext invocationContext
TestTemplateInvocationTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method templateMethod, TestTemplateInvocationContext invocationContext, int index)
protected 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.
context
- the context to execute inNode.before(C)
,
Node.execute(C, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor)