abstract class DynamicNodeTestDescriptor extends JupiterTestDescriptor
TestDescriptor
for a DynamicNode
.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 int |
index |
configuration
children
Constructor and Description |
---|
DynamicNodeTestDescriptor(UniqueId uniqueId,
int index,
DynamicNode dynamicNode,
TestSource testSource,
JupiterConfiguration configuration) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getLegacyReportingName()
Get the name of this descriptor in a format that is suitable for legacy
reporting infrastructure — for example, for reporting systems built
on the Ant-based XML reporting format for JUnit 4.
|
JupiterEngineExecutionContext |
prepare(JupiterEngineExecutionContext context)
Must be overridden and return a new context so cleanUp() does not accidentally close the parent context.
|
Node.SkipResult |
shouldBeSkipped(JupiterEngineExecutionContext context)
Determine if the execution of the supplied
context should be
skipped. |
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
after, around, before, execute, getExclusiveResources, nodeFinished, nodeSkipped
accept, containsTests, getDescendants, getType, isContainer, isRoot, isTest, mayRegisterTests, prune
DynamicNodeTestDescriptor(UniqueId uniqueId, int index, DynamicNode dynamicNode, TestSource testSource, JupiterConfiguration configuration)
public java.lang.String getLegacyReportingName()
TestDescriptor
The default implementation simply delegates to TestDescriptor.getDisplayName()
.
null
or blankpublic JupiterEngineExecutionContext prepare(JupiterEngineExecutionContext context)
JupiterTestDescriptor
prepare
in interface Node<JupiterEngineExecutionContext>
prepare
in class JupiterTestDescriptor
Node.cleanUp(EngineExecutionContext)
public Node.SkipResult shouldBeSkipped(JupiterEngineExecutionContext context)
Node
context
should be
skipped.
The default implementation returns Node.SkipResult.doNotSkip()
.
shouldBeSkipped
in interface Node<JupiterEngineExecutionContext>
shouldBeSkipped
in class JupiterTestDescriptor