Class ClassTestDescriptor

java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor
org.antublue.test.engine.internal.descriptor.ClassTestDescriptor
All Implemented Interfaces:
MetadataTestDescriptor, org.junit.platform.engine.TestDescriptor

public class ClassTestDescriptor extends ExecutableTestDescriptor
Class to implement a ClassTestDescriptor
  • 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.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor

    metadata, stopWatch, throwableCollector

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

    children
  • Method Summary

    Modifier and Type
    Method
    Description
    create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass)
    Method to create a ClassTestDescriptor
    void
    execute(ExecutionContext executionContext)
    Method to execute the test descriptor
    Optional<org.junit.platform.engine.TestSource>
     
    org.junit.platform.engine.TestDescriptor.Type
     
    void
    skip(ExecutionContext executionContext)
    Method to skip child test descriptors
     

    Methods inherited from class org.antublue.test.engine.internal.descriptor.ExecutableTestDescriptor

    collectThrowables, getMetadata

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

    addChild, equals, findByUniqueId, getChildren, getDisplayName, getParent, 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, isContainer, isRoot, isTest, mayRegisterTests, prune
  • Method Details

    • getSource

      public Optional<org.junit.platform.engine.TestSource> getSource()
      Specified by:
      getSource in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      getSource in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • getType

      public org.junit.platform.engine.TestDescriptor.Type getType()
    • execute

      public void execute(ExecutionContext executionContext)
      Description copied from class: ExecutableTestDescriptor
      Method to execute the test descriptor
      Specified by:
      execute in class ExecutableTestDescriptor
      Parameters:
      executionContext - executionContext
    • skip

      public void skip(ExecutionContext executionContext)
      Description copied from class: ExecutableTestDescriptor
      Method to skip child test descriptors
      Specified by:
      skip in class ExecutableTestDescriptor
      Parameters:
      executionContext - executionContext
    • toString

      public String toString()
      Overrides:
      toString in class ExecutableTestDescriptor
    • create

      public static ClassTestDescriptor create(org.junit.platform.engine.UniqueId parentUniqueId, Class<?> testClass)
      Method to create a ClassTestDescriptor
      Parameters:
      parentUniqueId - parentUniqueId
      testClass - testClass
      Returns:
      a ClassTestDescriptor