Node<JupiterEngineExecutionContext>, TestDescriptor@API(status=INTERNAL, since="5.0") public class TestFactoryTestDescriptor extends TestMethodTestDescriptor
TestDescriptor for
@TestFactory methods.Node.DynamicTestExecutor, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
DYNAMIC_CONTAINER_SEGMENT_TYPE |
|
static java.lang.String |
DYNAMIC_TEST_SEGMENT_TYPE |
children| Constructor | Description |
|---|---|
TestFactoryTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.Method testMethod) |
| Modifier and Type | Method | 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.
|
java.util.Set<TestTag> |
getTags() |
Get the set of tags associated with this descriptor.
|
java.lang.Class<?> |
getTestClass() |
|
java.lang.reflect.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.
|
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringdetermineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith, shouldBeSkippedclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, isContainer, isRoot, isTest, pruneexecute, populateNewExtensionRegistry, preparepublic static final java.lang.String DYNAMIC_CONTAINER_SEGMENT_TYPE
public static final java.lang.String DYNAMIC_TEST_SEGMENT_TYPE
public TestFactoryTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method testMethod)
public TestDescriptor.Type getType()
TestDescriptorTestDescriptor.Type of this descriptor.getType in interface TestDescriptorgetType in class TestMethodTestDescriptornull.TestDescriptor.isContainer(),
TestDescriptor.isTest()public boolean mayRegisterTests()
TestDescriptorThe default implementation assumes tests are usually known during
discovery and thus returns false.
protected void invokeTestMethod(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
invokeTestMethod in class TestMethodTestDescriptorpublic final java.util.Set<TestTag> getTags()
TestDescriptorgetTags in interface TestDescriptorgetTags in class AbstractTestDescriptornull
but potentially emptyTestTagpublic final java.lang.Class<?> getTestClass()
public final java.lang.reflect.Method getTestMethod()
public java.lang.String getLegacyReportingName()
TestDescriptorThe default implementation simply delegates to TestDescriptor.getDisplayName().
null or blank