Top Description Fields Constructors Methods
org.junit.jupiter.engine.descriptor

public Class TestTemplateInvocationTestDescriptor

extends TestMethodTestDescriptor
Class Inheritance
Annotations
@API
status:INTERNAL
since:5.0
Static Imports
java.util.Collections.emptySet, .Objects.requireNonNull, org.apiguardian.api.API.Status.INTERNAL

TestDescriptor for a @TestTemplate invocation.
Since
5.0

Field Summary

Modifier and TypeField and Description
private final int
private static final InterceptingExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall
private @Nullable TestTemplateInvocationContext
public static final String

Constructor Summary

AccessConstructor and Description
pack-priv
TestTemplateInvocationTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method templateMethod, TestTemplateInvocationContext invocationContext, int index, JupiterConfiguration configuration)

Method Summary

Modifier and TypeMethod and Description
public void
after(JupiterEngineExecutionContext context)

Overrides default org.junit.platform.engine.support.hierarchical.Node.after.

Execute the after behavior of this node.

public Set<ExclusiveResource>
public String
getLegacyReportingName()

Overrides org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor.getLegacyReportingName.

Overrides default org.junit.platform.engine.TestDescriptor.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
protected void
private TestTemplateInvocationContext
protected TestTemplateInvocationTestDescriptor
withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Overrides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.withUniqueId.

Returns shallow copy (without children) of this descriptor with the supplied unique ID.

Inherited from org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor:
cleanUpexecutegetTypeinvokeTestMethodnodeFinishedprepare

Field Detail

indexback to summary
private final int index
interceptorCallback to summary
private static final InterceptingExecutableInvoker.ReflectiveInterceptorCall.VoidMethodInterceptorCall interceptorCall

Hides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.interceptorCall.

invocationContextback to summary
private @Nullable TestTemplateInvocationContext invocationContext
SEGMENT_TYPEback to summary
public static final String SEGMENT_TYPE

Hides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.SEGMENT_TYPE.

Constructor Detail

TestTemplateInvocationTestDescriptorback to summary
pack-priv TestTemplateInvocationTestDescriptor(UniqueId uniqueId, Class<?> testClass, Method templateMethod, TestTemplateInvocationContext invocationContext, int index, JupiterConfiguration configuration)

Method Detail

afterback to summary
public void after(JupiterEngineExecutionContext context)

Overrides default org.junit.platform.engine.support.hierarchical.Node.after.

Doc from org.junit.platform.engine.support.hierarchical.Node.after.

Execute the after behavior of this node.

This method will be called once after execution of this node.

The default implementation does nothing.

Annotations
@Override
getExclusiveResourcesback to summary
public Set<ExclusiveResource> getExclusiveResources()

Overrides org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.getExclusiveResources.

Overrides default org.junit.platform.engine.support.hierarchical.Node.getExclusiveResources.

Doc from org.junit.platform.engine.support.hierarchical.Node.getExclusiveResources.

Get the set of exclusive resources required to execute this node.

The default implementation returns an empty set.

Annotations
@Override
getLegacyReportingNameback to summary
public String getLegacyReportingName()

Overrides org.junit.jupiter.engine.descriptor.MethodBasedTestDescriptor.getLegacyReportingName.

Overrides default org.junit.platform.engine.TestDescriptor.getLegacyReportingName.

Doc from org.junit.platform.engine.TestDescriptor.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.

The default implementation delegates to getDisplayName().

Annotations
@Override
populateNewExtensionRegistryback to summary
protected MutableExtensionRegistry populateNewExtensionRegistry(JupiterEngineExecutionContext context)

Overrides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.populateNewExtensionRegistry.

Annotations
@Override
prepareExtensionContextback to summary
protected void prepareExtensionContext(ExtensionContext extensionContext)

Overrides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.prepareExtensionContext.

Annotations
@Override
requiredInvocationContextback to summary
private TestTemplateInvocationContext requiredInvocationContext()
withUniqueIdback to summary
protected TestTemplateInvocationTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Overrides org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.withUniqueId.

Doc from org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.withUniqueId.

Returns shallow copy (without children) of this descriptor with the supplied unique ID.

Annotations
@Override