class DynamicContainerTestDescriptor extends JupiterTestDescriptor
TestDescriptor for a DynamicContainer.Node.DynamicTestExecutor, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
private DynamicContainer |
dynamicContainer |
private TestSource |
testSource |
children| Constructor and Description |
|---|
DynamicContainerTestDescriptor(UniqueId uniqueId,
DynamicContainer dynamicContainer,
TestSource testSource) |
| Modifier and Type | Method and Description |
|---|---|
JupiterEngineExecutionContext |
execute(JupiterEngineExecutionContext context,
Node.DynamicTestExecutor dynamicTestExecutor)
Execute the behavior of this node.
|
TestDescriptor.Type |
getType()
Determine the
TestDescriptor.Type of this descriptor. |
Node.SkipResult |
shouldBeSkipped(JupiterEngineExecutionContext context)
Determine if the execution of the supplied
context should be
skipped. |
private JupiterTestDescriptor |
toDynamicDescriptor(int index,
DynamicNode childNode) |
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWithaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitafter, before, prepareaccept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, pruneprivate final DynamicContainer dynamicContainer
private final TestSource testSource
DynamicContainerTestDescriptor(UniqueId uniqueId, DynamicContainer dynamicContainer, TestSource testSource)
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.null.TestDescriptor.isContainer(),
TestDescriptor.isTest()public Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context) throws java.lang.Exception
Nodecontext should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip().
shouldBeSkipped in interface Node<JupiterEngineExecutionContext>shouldBeSkipped in class JupiterTestDescriptorjava.lang.Exceptionpublic JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor) throws java.lang.Exception
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.
context - the context to execute indynamicTestExecutor - the executor to submit dynamic tests tojava.lang.ExceptionNode.before(C),
Node.after(C)private JupiterTestDescriptor toDynamicDescriptor(int index, DynamicNode childNode)