class DynamicTestTestDescriptor extends DynamicNodeTestDescriptor
TestDescriptor
for a DynamicTest
.JupiterTestDescriptor.ExceptionHandlerInvoker<E extends Extension>
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
private DynamicTest |
dynamicTest |
private static InvocationInterceptorChain |
interceptorChain |
configuration
children
Constructor and Description |
---|
DynamicTestTestDescriptor(UniqueId uniqueId,
int index,
DynamicTest dynamicTest,
TestSource source,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
void |
after(JupiterEngineExecutionContext context)
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. |
JupiterEngineExecutionContext |
execute(JupiterEngineExecutionContext context,
Node.DynamicTestExecutor dynamicTestExecutor)
Execute the behavior of this node.
|
TestDescriptor.Type |
getType()
Determine the
TestDescriptor.Type of this descriptor. |
getLegacyReportingName, prepare, shouldBeSkipped
cleanUp, getDefaultChildExecutionMode, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getExplicitExecutionMode, getTags, invokeExecutionExceptionHandlers, toExecutionMode
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
around, before, getExclusiveResources, nodeFinished, nodeSkipped
accept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, prune
private static final InvocationInterceptorChain interceptorChain
private DynamicTest dynamicTest
DynamicTestTestDescriptor(UniqueId uniqueId, int index, DynamicTest dynamicTest, TestSource source, JupiterConfiguration configuration)
public TestDescriptor.Type getType()
TestDescriptor
TestDescriptor.Type
of this descriptor.null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
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.
context
- the context to execute indynamicTestExecutor
- the executor to submit dynamic tests toNode.before(C)
,
Node.after(C)
public void after(JupiterEngineExecutionContext context) throws java.lang.Exception
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.context
- the context to execute injava.lang.Exception