@API(value=Internal) public class TestFactoryTestDescriptor extends TestMethodTestDescriptor
TestDescriptor
for
@TestFactory
methods.Node.DynamicTestExecutor, Node.SkipResult
TestDescriptor.Type, TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
static String |
DYNAMIC_CONTAINER_SEGMENT_TYPE |
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. |
protected void |
invokeTestMethod(JupiterEngineExecutionContext context,
Node.DynamicTestExecutor dynamicTestExecutor) |
boolean |
mayRegisterTests()
Determine if this descriptor may register dynamic tests during execution.
|
execute, populateNewExtensionRegistry, prepare
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldBeSkipped
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, containsTests, getDescendants, isContainer, isRoot, isTest, prune
public static final String DYNAMIC_CONTAINER_SEGMENT_TYPE
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 TestMethodTestDescriptor
null
.TestDescriptor.isContainer()
,
TestDescriptor.isTest()
public boolean mayRegisterTests()
TestDescriptor
The default implementation assumes tests are usually known during
discovery and thus returns false
.
protected void invokeTestMethod(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
invokeTestMethod
in class TestMethodTestDescriptor
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