@API(value=Internal) public class TestFactoryTestDescriptor extends MethodTestDescriptor
TestDescriptor for @TestFactory
methods.Node.DynamicTestExecutor, Node.SkipResultTestDescriptor.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, shouldBeSkippeddetermineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldContainerBeSkipped, shouldTestBeSkippedaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitafter, before, executeaccept, getDescendants, isContainer, isRoot, isTest, prune, pruneTreepublic static final String DYNAMIC_TEST_SEGMENT_TYPE
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.getType in interface TestDescriptorgetType in class MethodTestDescriptornull.TestDescriptor.isContainer(),
TestDescriptor.isTest()public boolean hasTests()
TestDescriptorThe 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()
NodeNode is a leaf in the hierarchy.
The default implementation returns false.
isLeaf in interface Node<JupiterEngineExecutionContext>isLeaf in class JupiterTestDescriptorprotected void invokeTestMethod(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
invokeTestMethod in class MethodTestDescriptorpublic final Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class AbstractTestDescriptornull
but potentially emptyTestTagpublic final Class<?> getTestClass()
public final Method getTestMethod()
public String getLegacyReportingName()
TestDescriptorThe default implementation simply delegates to TestDescriptor.getDisplayName().
null or blank