@API(status=INTERNAL,
since="5.0")
public class TestFactoryTestDescriptor
extends TestMethodTestDescriptor
implements Filterable
TestDescriptor for
@TestFactory methods.Node.DynamicTestExecutor, Node.SkipResultTestDescriptor.Type, TestDescriptor.Visitor| Modifier and Type | Field and Description |
|---|---|
static String |
DYNAMIC_CONTAINER_SEGMENT_TYPE |
static String |
DYNAMIC_TEST_SEGMENT_TYPE |
children| Constructor and Description |
|---|
TestFactoryTestDescriptor(UniqueId uniqueId,
Class<?> testClass,
Method testMethod) |
| Modifier and Type | Method and Description |
|---|---|
DynamicDescendantFilter |
getDynamicDescendantFilter() |
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, preparecleanUp, determineDisplayName, executeAndMaskThrowable, getTags, shouldBeSkippedaddChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitaccept, containsTests, getDescendants, isContainer, isRoot, isTest, prunepublic static final String DYNAMIC_CONTAINER_SEGMENT_TYPE
public static final String DYNAMIC_TEST_SEGMENT_TYPE
public DynamicDescendantFilter getDynamicDescendantFilter()
getDynamicDescendantFilter in interface Filterablepublic 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.
mayRegisterTests in interface TestDescriptorprotected void invokeTestMethod(JupiterEngineExecutionContext context, Node.DynamicTestExecutor dynamicTestExecutor)
invokeTestMethod in class TestMethodTestDescriptorpublic 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 blankCopyright © 2020. All rights reserved.