Class ExecutableTestDescriptor
java.lang.Object
org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
- All Implemented Interfaces:
MetadataTestDescriptor,org.junit.platform.engine.TestDescriptor
- Direct Known Subclasses:
ArgumentTestDescriptor,ClassTestDescriptor,TestMethodTestDescriptor
public abstract class ExecutableTestDescriptor
extends AbstractTestDescriptor
implements MetadataTestDescriptor
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
FieldsModifier and TypeFieldDescriptionprotected final Metadataprotected final StopWatchprotected final ThrowableCollectorFields inherited from class org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
children -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExecutableTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName) Constructor -
Method Summary
Modifier and TypeMethodDescriptionMethod to collect all Throwables from parent and childrenabstract voidexecute(ExecutionContext executionContext) Method to execute the test descriptorMethod to get Metadataabstract voidskip(ExecutionContext executionContext) Method to skip child test descriptorstoString()Methods inherited from class org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent, setUniqueIdMethods 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
-
Field Details
-
throwableCollector
-
metadata
-
stopWatch
-
-
Constructor Details
-
ExecutableTestDescriptor
Constructor- Parameters:
uniqueId- uniqueIddisplayName- displayName
-
-
Method Details
-
getMetadata
Description copied from interface:MetadataTestDescriptorMethod to get Metadata- Specified by:
getMetadatain interfaceMetadataTestDescriptor- Returns:
- Metadata
-
toString
- Overrides:
toStringin classAbstractTestDescriptor
-
execute
Method to execute the test descriptor- Parameters:
executionContext- executionContext
-
skip
Method to skip child test descriptors- Parameters:
executionContext- executionContext
-
collectThrowables
Method to collect all Throwables from parent and children- Returns:
- a List of Throwables
-