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:
ResourceLockAware,TestClassAware,Validatable,org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>,org.junit.platform.engine.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 class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
JupiterTestDescriptor.ExceptionHandlerInvoker<E extends org.junit.jupiter.api.extension.Extension>Nested classes/interfaces inherited from interface org.junit.platform.engine.support.hierarchical.Node
org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor, org.junit.platform.engine.support.hierarchical.Node.ExecutionMode, org.junit.platform.engine.support.hierarchical.Node.Invocation<C extends org.junit.platform.engine.support.hierarchical.EngineExecutionContext>, org.junit.platform.engine.support.hierarchical.Node.SkipResultNested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate static final InterceptingExecutableInvoker.ReflectiveInterceptorCall<Method, Void> private org.junit.jupiter.api.extension.TestTemplateInvocationContextstatic final StringFields inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
configurationFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionTestTemplateInvocationTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> testClass, Method templateMethod, org.junit.jupiter.api.extension.TestTemplateInvocationContext invocationContext, int index, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(JupiterEngineExecutionContext context) Set<org.junit.platform.engine.support.hierarchical.ExclusiveResource> protected OptionalIntprotected MutableExtensionRegistryprotected voidprepareExtensionContext(org.junit.jupiter.api.extension.ExtensionContext extensionContext) protected TestTemplateInvocationTestDescriptorwithUniqueId(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer) Returns shallow copy (without children) of this descriptor with the supplied unique ID.Methods inherited from class org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor
cleanUp, execute, getType, invokeTestMethod, nodeFinished, prepareMethods inherited from class org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor
getEnclosingTestClasses, getExclusiveResourceCollector, getExplicitExecutionMode, getLegacyReportingBaseName, getResourceLocksProviderEvaluator, getTags, getTestClass, getTestMethod, invokeTestWatchers, nodeSkipped, validateMethods inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
copyIncludingDescendants, getDefaultChildExecutionMode, getExecutionMode, getExecutionModeFromAnnotation, getLegacyReportingName, getTags, invokeExecutionExceptionHandlers, shouldBeSkipped, toExecutionModeMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, orderChildren, 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.support.hierarchical.Node
around, beforeMethods inherited from interface org.junit.jupiter.engine.descriptor.ResourceLockAware
determineExclusiveResources, determineOwnExclusiveResourcesMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, addChild, findByUniqueId, getAncestors, getChildren, getDescendants, getDisplayName, getLegacyReportingName, getParent, getSource, getUniqueId, isContainer, isRoot, isTest, mayRegisterTests, orderChildren, prune, removeChild, removeFromHierarchy, setParent
-
Field Details
-
SEGMENT_TYPE
- See Also:
-
interceptorCall
private static final InterceptingExecutableInvoker.ReflectiveInterceptorCall<Method,Void> interceptorCall -
invocationContext
private org.junit.jupiter.api.extension.TestTemplateInvocationContext invocationContext -
index
private final int index
-
-
Constructor Details
-
TestTemplateInvocationTestDescriptor
TestTemplateInvocationTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, Class<?> testClass, Method templateMethod, org.junit.jupiter.api.extension.TestTemplateInvocationContext invocationContext, int index, JupiterConfiguration configuration)
-
-
Method Details
-
withUniqueId
protected TestTemplateInvocationTestDescriptor withUniqueId(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer) Description copied from class:JupiterTestDescriptorReturns shallow copy (without children) of this descriptor with the supplied unique ID.- Overrides:
withUniqueIdin classTestMethodTestDescriptor- Returns:
- shallow copy (without children) of this descriptor with the supplied unique ID
-
getExclusiveResources
public Set<org.junit.platform.engine.support.hierarchical.ExclusiveResource> getExclusiveResources()- Specified by:
getExclusiveResourcesin interfaceorg.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>- Overrides:
getExclusiveResourcesin classJupiterTestDescriptor
-
getLegacyReportingIndex
- Overrides:
getLegacyReportingIndexin classJupiterTestDescriptor
-
populateNewExtensionRegistry
protected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context) - Overrides:
populateNewExtensionRegistryin classTestMethodTestDescriptor
-
prepareExtensionContext
protected void prepareExtensionContext(org.junit.jupiter.api.extension.ExtensionContext extensionContext) - Overrides:
prepareExtensionContextin classTestMethodTestDescriptor
-
after
-