Class DynamicTestTestDescriptor
- java.lang.Object
-
- org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
- org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
-
- org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor
-
- org.junit.jupiter.engine.descriptor.DynamicTestTestDescriptor
-
- All Implemented Interfaces:
org.junit.platform.engine.support.hierarchical.Node<JupiterEngineExecutionContext>,org.junit.platform.engine.TestDescriptor
class DynamicTestTestDescriptor extends DynamicNodeTestDescriptor
TestDescriptorfor aDynamicTest.- 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.SkipResult
-
-
Field Summary
Fields Modifier and Type Field Description private org.junit.jupiter.api.DynamicTestdynamicTestprivate static InvocationInterceptorChaininterceptorChain-
Fields inherited from class org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor
index
-
Fields inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
configuration
-
-
Constructor Summary
Constructors Constructor Description DynamicTestTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, int index, org.junit.jupiter.api.DynamicTest dynamicTest, org.junit.platform.engine.TestSource source, JupiterConfiguration configuration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidafter(JupiterEngineExecutionContext context)Avoid anOutOfMemoryErrorby releasing the reference to this descriptor'sDynamicTestwhich holds a reference to the user-suppliedExecutablewhich may potentially consume large amounts of memory on the heap.JupiterEngineExecutionContextexecute(JupiterEngineExecutionContext context, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor dynamicTestExecutor)org.junit.platform.engine.TestDescriptor.TypegetType()protected DynamicTestTestDescriptorwithUniqueId(java.util.function.UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer){@return shallow copy (without children) of this descriptor with the supplied unique ID}-
Methods inherited from class org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor
getLegacyReportingBaseName, getLegacyReportingIndex, prepare, shouldBeSkipped
-
Methods inherited from class org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
cleanUp, copyIncludingDescendants, getDefaultChildExecutionMode, getExclusiveResources, getExecutionMode, getExecutionModeFromAnnotation, getExplicitExecutionMode, getLegacyReportingName, getTags, invokeExecutionExceptionHandlers, toExecutionMode
-
Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, orderChildren, removeChild, removeFromHierarchy, setParent, toString
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
interceptorChain
private static final InvocationInterceptorChain interceptorChain
-
dynamicTest
private org.junit.jupiter.api.DynamicTest dynamicTest
-
-
Constructor Detail
-
DynamicTestTestDescriptor
DynamicTestTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, int index, org.junit.jupiter.api.DynamicTest dynamicTest, org.junit.platform.engine.TestSource source, JupiterConfiguration configuration)
-
-
Method Detail
-
withUniqueId
protected DynamicTestTestDescriptor withUniqueId(java.util.function.UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer)
Description copied from class:JupiterTestDescriptor{@return shallow copy (without children) of this descriptor with the supplied unique ID}- Specified by:
withUniqueIdin classJupiterTestDescriptor
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType()
-
execute
public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor dynamicTestExecutor)
-
after
public void after(JupiterEngineExecutionContext context) throws java.lang.Exception
Avoid anOutOfMemoryErrorby releasing the reference to this descriptor'sDynamicTestwhich holds a reference to the user-suppliedExecutablewhich may potentially consume large amounts of memory on the heap.- Throws:
java.lang.Exception- Since:
- 5.5
- See Also:
- Issue 1865
-
-