Class DynamicNodeTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.jupiter.engine.descriptor.JupiterTestDescriptor
org.junit.jupiter.engine.descriptor.DynamicNodeTestDescriptor
- All Implemented Interfaces:
Node<JupiterEngineExecutionContext>, TestDescriptor
- Direct Known Subclasses:
DynamicContainerTestDescriptor, DynamicTestTestDescriptor
Base
TestDescriptor for a DynamicNode.- Since:
- 5.0.3
-
Nested Class Summary
Nested classes/interfaces inherited from class JupiterTestDescriptor
JupiterTestDescriptor.ExceptionHandlerInvoker<E>Nested classes/interfaces inherited from interface Node
Node.DynamicTestExecutor, Node.ExecutionMode, Node.Invocation<C>, Node.SkipResultNested classes/interfaces inherited from interface TestDescriptor
TestDescriptor.Type, TestDescriptor.Visitor -
Field Summary
FieldsFields inherited from class JupiterTestDescriptor
configurationFields inherited from class AbstractTestDescriptor
children -
Constructor Summary
ConstructorsConstructorDescriptionDynamicNodeTestDescriptor(UniqueId uniqueId, int index, org.junit.jupiter.api.DynamicNode dynamicNode, TestSource testSource, JupiterConfiguration configuration) -
Method Summary
Modifier and TypeMethodDescriptionGet 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.prepare(JupiterEngineExecutionContext context) Must be overridden and return a new context with a newExtensionContextso cleanUp() does not accidentally close the parent context.Determine if the execution of the suppliedcontextshould be skipped.Methods inherited from class JupiterTestDescriptor
cleanUp, copyIncludingDescendants, getDefaultChildExecutionMode, getExclusiveResources, getExecutionMode, getExecutionModeFromAnnotation, getExplicitExecutionMode, getTags, invokeExecutionExceptionHandlers, toExecutionMode, withUniqueIdMethods inherited from class AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, orderChildren, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from interface Node
after, around, before, execute, nodeFinished, nodeSkippedMethods inherited from interface TestDescriptor
accept, getAncestors, getDescendants, getType, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Field Details
-
index
protected final int index
-
-
Constructor Details
-
DynamicNodeTestDescriptor
DynamicNodeTestDescriptor(UniqueId uniqueId, int index, org.junit.jupiter.api.DynamicNode dynamicNode, TestSource testSource, JupiterConfiguration configuration)
-
-
Method Details
-
getLegacyReportingName
Description copied from interface:TestDescriptorGet 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.The default implementation delegates to
TestDescriptor.getDisplayName().- Returns:
- the legacy reporting name; never
nullor blank
-
prepare
Description copied from class:JupiterTestDescriptorMust be overridden and return a new context with a newExtensionContextso cleanUp() does not accidentally close the parent context.- Specified by:
preparein interfaceNode<JupiterEngineExecutionContext>- Specified by:
preparein classJupiterTestDescriptor- See Also:
-
shouldBeSkipped
Description copied from interface:NodeDetermine if the execution of the suppliedcontextshould be skipped.The default implementation returns
Node.SkipResult.doNotSkip().- Specified by:
shouldBeSkippedin interfaceNode<JupiterEngineExecutionContext>- Overrides:
shouldBeSkippedin classJupiterTestDescriptor
-