class DynamicTestTestDescriptor extends DynamicNodeTestDescriptor
TestDescriptor for a DynamicTest.JupiterTestDescriptor.ExceptionHandlerInvoker<E extends Extension>Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C extends EngineExecutionContext>, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private DynamicTest |
dynamicTest |
private static InvocationInterceptorChain |
interceptorChain |
configurationchildren| 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, shouldBeSkippedcleanUp, getDefaultChildExecutionMode, getExclusiveResourcesFromAnnotation, getExecutionMode, getExecutionModeFromAnnotation, getExplicitExecutionMode, getTags, invokeExecutionExceptionHandlers, toExecutionModeaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaround, before, getExclusiveResources, nodeFinished, nodeSkippedaccept, containsTests, getDescendants, isContainer, isRoot, isTest, mayRegisterTests, pruneprivate static final InvocationInterceptorChain interceptorChain
private DynamicTest dynamicTest
DynamicTestTestDescriptor(UniqueId uniqueId, int index, DynamicTest dynamicTest, TestSource source, JupiterConfiguration configuration)
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.null.TestDescriptor.isContainer(),
TestDescriptor.isTest()public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
NodeContainers 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