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

pack-priv Class DynamicTestTestDescriptor

extends DynamicNodeTestDescriptor
Class Inheritance
Static Imports
java.util.Objects.requireNonNull

TestDescriptor for a DynamicTest.
Since
5.0

Field Summary

Modifier and TypeField and Description
private @Nullable DynamicTest
private static final InvocationInterceptorChain
Inherited from org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor:
index

Constructor Summary

AccessConstructor and Description
pack-priv
DynamicTestTestDescriptor(UniqueId uniqueId, int index, DynamicTest dynamicTest, @Nullable TestSource source, JupiterConfiguration configuration)

Method Summary

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

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

Avoid an OutOfMemoryError by releasing the reference to this descriptor's DynamicTest which holds a reference to the user-supplied Executable which may potentially consume large amounts of memory on the heap.

public JupiterEngineExecutionContext
execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)

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

Execute the behavior of this node.

public TestDescriptor.Type
getType()

Implements org.junit.platform.engine.TestDescriptor.getType.

Determine the Type of this descriptor.

private DynamicTest
private InvocationInterceptor.Invocation<@Nullable Void>
protected DynamicTestTestDescriptor
withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Implements abstract org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.withUniqueId.

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

Inherited from org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor:
getLegacyReportingNameprepareshouldBeSkipped

Field Detail

dynamicTestback to summary
private @Nullable DynamicTest dynamicTest
interceptorChainback to summary
private static final InvocationInterceptorChain interceptorChain

Constructor Detail

DynamicTestTestDescriptorback to summary
pack-priv DynamicTestTestDescriptor(UniqueId uniqueId, int index, DynamicTest dynamicTest, @Nullable TestSource source, JupiterConfiguration configuration)

Method Detail

afterback to summary
public void after(JupiterEngineExecutionContext context) throws Exception

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

Avoid an OutOfMemoryError by releasing the reference to this descriptor's DynamicTest which holds a reference to the user-supplied Executable which may potentially consume large amounts of memory on the heap.

Annotations
@Override
Since
5.5
See Also
Issue 1865
executeback to summary
public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)

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

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

Execute the behavior of this node.

Containers typically do not implement this method since the HierarchicalTestEngine handles execution of their children.

The supplied dynamicTestExecutor may be used to submit additional dynamic tests for immediate execution.

The default implementation returns the supplied context unmodified.

Annotations
@Override
getTypeback to summary
public TestDescriptor.Type getType()

Implements org.junit.platform.engine.TestDescriptor.getType.

Doc from org.junit.platform.engine.TestDescriptor.getType.

Determine the Type of this descriptor.

Annotations
@Override
requiredDynamicTestback to summary
private DynamicTest requiredDynamicTest()
toInvocationback to summary
private InvocationInterceptor.Invocation<@Nullable Void> toInvocation()
withUniqueIdback to summary
protected DynamicTestTestDescriptor withUniqueId(UnaryOperator<UniqueId> uniqueIdTransformer)

Implements abstract org.junit.jupiter.engine.descriptor.JupiterTestDescriptor.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