Class MethodTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
org.antublue.test.engine.internal.descriptor.MethodTestDescriptor
- All Implemented Interfaces:
MetadataSupport,org.junit.platform.engine.TestDescriptor
Class to implement a MethodTestDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.junit.platform.engine.TestDescriptor
org.junit.platform.engine.TestDescriptor.Type, org.junit.platform.engine.TestDescriptor.Visitor -
Field Summary
Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
children -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute(org.junit.platform.engine.ExecutionRequest executionRequest) Method to execute the test descriptorOptional<org.junit.platform.engine.TestSource> getTag()org.junit.platform.engine.TestDescriptor.TypegetType()static MethodTestDescriptorMethod to create a MethodTestDescriptorMethods inherited from class org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
getExecutionRequest, getMetadata, getParent, getStopWatch, getTag, getTestInstance, getThrowableCollector, setExecutionRequest, setTestInstance, skipMethods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.junit.platform.engine.TestDescriptor
accept, getAncestors, getDescendants, getLegacyReportingName, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Constructor Details
-
MethodTestDescriptor
-
-
Method Details
-
getType
public org.junit.platform.engine.TestDescriptor.Type getType() -
getSource
- Specified by:
getSourcein interfaceorg.junit.platform.engine.TestDescriptor- Overrides:
getSourcein classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
getTestMethod
-
getTag
-
execute
public void execute(org.junit.platform.engine.ExecutionRequest executionRequest) Description copied from class:ExecutableTestDescriptorMethod to execute the test descriptor- Specified by:
executein classExecutableTestDescriptor- Parameters:
executionRequest- executionRequest
-
of
public static MethodTestDescriptor of(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass, Method testMethod) Method to create a MethodTestDescriptor- Parameters:
parentUniqueId- parentUniqueIdtestClass- testClasstestMethod- testMethod- Returns:
- a MethodTestDescriptor
-