@API(status=INTERNAL,
since="5.0")
public class TestTemplateInvocationTestDescriptor
extends TestMethodTestDescriptor
TestDescriptor for a @TestTemplate
invocation.JupiterTestDescriptor.ExceptionHandlerInvoker<E extends Extension>Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private int |
index |
private static ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Method,java.lang.Void> |
interceptorCall |
private TestTemplateInvocationContext |
invocationContext |
static java.lang.String |
SEGMENT_TYPE |
configurationchildren| Constructor and Description |
|---|
TestTemplateInvocationTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method templateMethod,
TestTemplateInvocationContext invocationContext,
int index,
JupiterConfiguration configuration) |
| Modifier and Type | Method and Description |
|---|---|
void |
after(JupiterEngineExecutionContext context)
Execute the after behavior of this node.
|
java.util.Set<ExclusiveResource> |
getExclusiveResources()
Get the set of exclusive resources
required to execute this node.
|
java.lang.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 MutableExtensionRegistry |
populateNewExtensionRegistry(JupiterEngineExecutionContext context) |
execute, getType, invokeTestMethod, nodeFinished, nodeSkipped, preparegetExplicitExecutionMode, getTags, getTestClass, getTestMethodcleanUp, getDefaultChildExecutionMode, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getTags, invokeExecutionExceptionHandlers, shouldBeSkipped, toExecutionModeaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prunepublic static final java.lang.String SEGMENT_TYPE
private static final ExecutableInvoker.ReflectiveInterceptorCall<java.lang.reflect.Method,java.lang.Void> interceptorCall
private TestTemplateInvocationContext invocationContext
private final int index
TestTemplateInvocationTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method templateMethod, TestTemplateInvocationContext invocationContext, int index, JupiterConfiguration configuration)
public java.util.Set<ExclusiveResource> getExclusiveResources()
NodeThe default implementation returns an empty set.
getExclusiveResources in interface Node<JupiterEngineExecutionContext>getExclusiveResources in class MethodBasedTestDescriptornull but potentially emptyExclusiveResourcepublic java.lang.String getLegacyReportingName()
TestDescriptorThe default implementation simply delegates to TestDescriptor.getDisplayName().
getLegacyReportingName in interface TestDescriptorgetLegacyReportingName in class MethodBasedTestDescriptornull or blankprotected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context)
populateNewExtensionRegistry in class TestMethodTestDescriptorpublic void after(JupiterEngineExecutionContext context)
NodeThis 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)