class DynamicContainerTestDescriptor extends JupiterTestDescriptor
TestDescriptor
for a DynamicContainer
.Node.DynamicTestExecutor, Node.SkipResult
TestDescriptor.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, populateNewExtensionRegistryFromExtendWith
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
after, before, prepare
accept, containsTests, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
private final DynamicContainer dynamicContainer
private final TestSource testSource
DynamicContainerTestDescriptor(UniqueId uniqueId, DynamicContainer dynamicContainer, TestSource testSource)
public TestDescriptor.Type getType()
TestDescriptor
TestDescriptor.Type
of this descriptor.null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context) throws java.lang.Exception
Node
context
should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip()
.
shouldBeSkipped
in interface Node<JupiterEngineExecutionContext>
shouldBeSkipped
in class JupiterTestDescriptor
java.lang.Exception
public JupiterEngineExecutionContext execute(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor) throws java.lang.Exception
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.
context
- the context to execute indynamicTestExecutor
- the executor to submit dynamic tests tojava.lang.Exception
Node.before(C)
,
Node.after(C)
private JupiterTestDescriptor toDynamicDescriptor(int index, DynamicNode childNode)