@API(value=Internal) public class TestFactoryTestDescriptor extends MethodTestDescriptor
TestDescriptor
for @TestFactory
methods.Node.SkipResult
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 |
---|---|
boolean |
hasTests()
Determine if this descriptor or any of its descendants describes a test.
|
protected void |
invokeTestMethod(JupiterEngineExecutionContext context) |
boolean |
isContainer()
Determine if this descriptor describes a container.
|
boolean |
isLeaf()
Determine if this
Node is a leaf in the hierarchy. |
boolean |
isTest()
Determine if this descriptor describes a test.
|
execute, generateDefaultDisplayName, getTags, getTestClass, getTestMethod, prepare, shouldBeSkipped
determineDisplayName, executeAndMaskThrowable, getTags, populateNewExtensionRegistryFromExtendWith
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setSource, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, getDescendants, isRoot
public static final String DYNAMIC_TEST_SEGMENT_TYPE
public boolean isTest()
TestDescriptor
isTest
in interface TestDescriptor
isTest
in class MethodTestDescriptor
public boolean isContainer()
TestDescriptor
isContainer
in interface TestDescriptor
isContainer
in class MethodTestDescriptor
public boolean hasTests()
TestDescriptor
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)
invokeTestMethod
in class MethodTestDescriptor