Class ExecutableTestDescriptor

java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
All Implemented Interfaces:
MetadataSupport, org.junit.platform.engine.TestDescriptor
Direct Known Subclasses:
ArgumentTestDescriptor, ClassTestDescriptor, MethodTestDescriptor

public abstract class ExecutableTestDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor implements MetadataSupport
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

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

    Modifier and Type
    Method
    Description
    abstract void
    execute(org.junit.platform.engine.ExecutionRequest executionRequest)
    Method to execute the test descriptor
    protected org.junit.platform.engine.ExecutionRequest
     
     
    protected <T> T
    getParent(Class<T> clazz)
     
    protected StopWatch
     
    protected static String
    getTag(AnnotatedElement annotatedElement)
    Method to get a test class tag value
    protected Object
     
    protected org.junit.platform.engine.support.hierarchical.ThrowableCollector
     
    protected void
    setExecutionRequest(org.junit.platform.engine.ExecutionRequest executionRequest)
     
    protected void
    setTestInstance(Object testInstance)
     
    void
    skip(org.junit.platform.engine.ExecutionRequest executionRequest)
     

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

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

    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
  • Constructor Details

    • ExecutableTestDescriptor

      protected ExecutableTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
  • Method Details

    • setExecutionRequest

      protected void setExecutionRequest(org.junit.platform.engine.ExecutionRequest executionRequest)
    • getExecutionRequest

      protected org.junit.platform.engine.ExecutionRequest getExecutionRequest()
    • getParent

      protected <T> T getParent(Class<T> clazz)
    • getStopWatch

      protected StopWatch getStopWatch()
    • setTestInstance

      protected void setTestInstance(Object testInstance)
    • getTestInstance

      protected Object getTestInstance()
    • getThrowableCollector

      protected org.junit.platform.engine.support.hierarchical.ThrowableCollector getThrowableCollector()
    • getMetadata

      public Metadata getMetadata()
      Specified by:
      getMetadata in interface MetadataSupport
    • execute

      public abstract void execute(org.junit.platform.engine.ExecutionRequest executionRequest)
      Method to execute the test descriptor
      Parameters:
      executionRequest - executionRequest
    • skip

      public void skip(org.junit.platform.engine.ExecutionRequest executionRequest)
    • getTag

      protected static String getTag(AnnotatedElement annotatedElement)
      Method to get a test class tag value
      Parameters:
      annotatedElement - annotatedElement
      Returns:
      the tag value