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
TestDescriptor for a DynamicTest.- Since:
- 5.0
-
Nested Class Summary
Nested classes/interfaces inherited from class JupiterTestDescriptor
JupiterTestDescriptor.ExceptionHandlerInvoker<E>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>, 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 org.junit.jupiter.api.DynamicTestprivate static final InvocationInterceptorChainFields inherited from class DynamicNodeTestDescriptor
indexFields inherited from class JupiterTestDescriptor
configurationFields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionDynamicTestTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, int index, org.junit.jupiter.api.DynamicTest dynamicTest, org.junit.platform.engine.TestSource source, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionvoidafter(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.execute(JupiterEngineExecutionContext context, org.junit.platform.engine.support.hierarchical.Node.DynamicTestExecutor dynamicTestExecutor) org.junit.platform.engine.TestDescriptor.TypegetType()protected DynamicTestTestDescriptorwithUniqueId(UnaryOperator<org.junit.platform.engine.UniqueId> uniqueIdTransformer) Returns shallow copy (without children) of this descriptor with the supplied unique ID.Methods inherited from class DynamicNodeTestDescriptor
getLegacyReportingBaseName, getLegacyReportingIndex, prepare, shouldBeSkippedMethods inherited from class JupiterTestDescriptor
cleanUp, copyIncludingDescendants, getDefaultChildExecutionMode, getExclusiveResources, getExecutionMode, getExecutionModeFromAnnotation, getExplicitExecutionMode, getLegacyReportingName, getTags, invokeExecutionExceptionHandlers, toExecutionModeMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, orderChildren, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from interface org.junit.platform.engine.support.hierarchical.Node
around, before, nodeFinished, nodeSkippedMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
interceptorChain
-
dynamicTest
private org.junit.jupiter.api.DynamicTest dynamicTest
-
-
Constructor Details
-
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 Details
-
withUniqueId
protected DynamicTestTestDescriptor 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.- Specified by:
withUniqueIdin classJupiterTestDescriptor- Returns:
- shallow copy (without children) of this descriptor with the supplied unique ID
-
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
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:
Exception- Since:
- 5.5
- See Also:
-