@API(value=Internal) public class TestFactoryTestDescriptor extends MethodTestDescriptor
TestDescriptor
for @TestFactory
methods.Node.DynamicTestExecutor, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
static String |
DYNAMIC_TEST_SEGMENT_TYPE |
Constructor and Description |
---|
TestFactoryTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
Method testMethod) |
Modifier and Type | Method and Description |
---|---|
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.
|
Set<TestTag> |
getTags()
Get the set of tags associated with this descriptor.
|
Class<?> |
getTestClass() |
Method |
getTestMethod() |
TestDescriptor.Type |
getType()
Determine the
TestDescriptor.Type of this descriptor. |
boolean |
hasTests()
Determine if this descriptor or any of its descendants describes a test.
|
protected void |
invokeTestMethod(JupiterEngineExecutionContext context,
Node.DynamicTestExecutor dynamicTestExecutor) |
boolean |
isLeaf()
Determine if this
Node is a leaf in the hierarchy. |
execute, populateNewExtensionRegistry, prepare, shouldBeSkipped
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldContainerBeSkipped, shouldTestBeSkipped
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
after, before, execute
accept, getDescendants, isContainer, isRoot, isTest, prune, pruneTree
public static final String DYNAMIC_TEST_SEGMENT_TYPE
public TestDescriptor.Type getType()
TestDescriptor
TestDescriptor.Type
of this descriptor.getType
in interface TestDescriptor
getType
in class MethodTestDescriptor
null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public boolean hasTests()
TestDescriptor
The default implementation returns true
if TestDescriptor.isTest()
returns true
and otherwise recurses through this descriptor's
children to determine if they have tests.
public boolean isLeaf()
Node
Node
is a leaf in the hierarchy.
The default implementation returns false
.
isLeaf
in interface Node<JupiterEngineExecutionContext>
isLeaf
in class JupiterTestDescriptor
protected void invokeTestMethod(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
invokeTestMethod
in class MethodTestDescriptor
public final Set<TestTag> getTags()
TestDescriptor
getTags
in interface TestDescriptor
getTags
in class AbstractTestDescriptor
null
but potentially emptyTestTag
public final Class<?> getTestClass()
public final Method getTestMethod()
public String getLegacyReportingName()
TestDescriptor
The default implementation simply delegates to TestDescriptor.getDisplayName()
.
null
or blank