Class ExecutableTestDescriptor

java.lang.Object
org.junit.platform.engine.support.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 org.junit.platform.engine.support.descriptor.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

    Fields
    Modifier and Type
    Field
    Description
    protected final Metadata
     
    protected final StopWatch
     
    protected final ThrowableCollector
     

    Fields inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

    children
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExecutableTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
    Constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    Method to collect all Throwables from parent and children
    abstract void
    execute(org.junit.platform.engine.ExecutionRequest executionRequest, Object testInstance)
    Method to execute the test descriptor
    Method to get metadata information
    abstract void
    skip(org.junit.platform.engine.ExecutionRequest executionRequest)
    Method to skip child test descriptors
     

    Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

    addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getTags, getUniqueId, hashCode, removeChild, removeFromHierarchy, setParent

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface org.junit.platform.engine.TestDescriptor

    accept, getAncestors, getDescendants, getLegacyReportingName, getType, isContainer, isRoot, isTest, mayRegisterTests, prune
  • Field Details

  • Constructor Details

    • ExecutableTestDescriptor

      protected ExecutableTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
      Constructor
      Parameters:
      uniqueId - uniqueId
      displayName - 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

      public abstract void skip(org.junit.platform.engine.ExecutionRequest executionRequest)
      Method to skip child test descriptors
      Parameters:
      executionRequest - executionRequest
    • getMetadata

      public Metadata getMetadata()
      Description copied from interface: MetadataTestDescriptor
      Method to get metadata information
      Specified by:
      getMetadata in interface MetadataTestDescriptor
      Returns:
      metadata information
    • toString

      public String toString()
      Overrides:
      toString in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • collectThrowables

      public List<Throwable> collectThrowables()
      Method to collect all Throwables from parent and children
      Returns:
      a List of Throwables