@API(value=Internal) public class TestFactoryTestDescriptor extends MethodTestDescriptor
TestDescriptor
for @TestFactory
methods.Node.SkipResult
TestDescriptor.Visitor
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DYNAMIC_TEST_SEGMENT_TYPE |
Constructor and Description |
---|
TestFactoryTestDescriptor(UniqueId uniqueId,
java.lang.Class<?> testClass,
java.lang.reflect.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, getAllDescendants, isRoot
public static final java.lang.String DYNAMIC_TEST_SEGMENT_TYPE
public TestFactoryTestDescriptor(UniqueId uniqueId, java.lang.Class<?> testClass, java.lang.reflect.Method testMethod)
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