Class ExecutableTestDescriptor
java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
- All Implemented Interfaces:
Metadata,org.junit.platform.engine.TestDescriptor
- Direct Known Subclasses:
ArgumentTestDescriptor,ClassTestDescriptor,TestMethodTestDescriptor
public abstract class ExecutableTestDescriptor
extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
implements Metadata
Abstract class to implement an ExecutableTestDescriptor
-
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
ConstructorsModifierConstructorDescriptionprotectedExecutableTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionabstract voidMethod to execute the test descriptorMethod to get metadata informationprotected <T> TMetod to get the parent test descriptorprotected StopWatchMethod to get the stop watchprotected org.junit.platform.engine.support.hierarchical.ThrowableCollectorMethod to get the throwable collectorvoidMethod to skip child test descriptorstoString()Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParentMethods 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, getType, isContainer, isRoot, isTest, mayRegisterTests, prune
-
Constructor Details
-
ExecutableTestDescriptor
Constructor- Parameters:
uniqueId- uniqueIddisplayName- displayName
-
-
Method Details
-
execute
public abstract void execute(org.junit.platform.engine.ExecutionRequest executionRequest, Object testInstance) Method to execute the test descriptor- Parameters:
executionRequest- executionRequest
-
skip
Method to skip child test descriptors- Parameters:
executionRequest- executionRequest
-
getMetadata
Description copied from interface:MetadataMethod to get metadata information- Specified by:
getMetadatain interfaceMetadata- Returns:
- metadata information
-
toString
- Overrides:
toStringin classorg.junit.platform.engine.support.descriptor.AbstractTestDescriptor
-
getParent
Metod to get the parent test descriptor- Type Parameters:
T- T- Parameters:
clazz- clazz- Returns:
- the parent test descriptor
-
getStopWatch
Method to get the stop watch- Returns:
- the stop watch
-
getThrowableCollector
protected org.junit.platform.engine.support.hierarchical.ThrowableCollector getThrowableCollector()Method to get the throwable collector- Returns:
- the throwable collector
-