Class AbstractTestDescriptor

java.lang.Object
org.antublue.test.engine.internal.descriptor.AbstractTestDescriptor
All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
Direct Known Subclasses:
ExecutableTestDescriptor

public abstract class AbstractTestDescriptor extends Object implements org.junit.platform.engine.TestDescriptor
  • 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 Set<org.junit.platform.engine.TestDescriptor>
     
  • Constructor Summary

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

    Modifier and Type
    Method
    Description
    void
    addChild(org.junit.platform.engine.TestDescriptor child)
     
    final boolean
    equals(Object other)
     
    Optional<? extends org.junit.platform.engine.TestDescriptor>
    findByUniqueId(org.junit.platform.engine.UniqueId uniqueId)
     
    final Set<? extends org.junit.platform.engine.TestDescriptor>
     
    final String
     
    final Optional<org.junit.platform.engine.TestDescriptor>
     
    Optional<org.junit.platform.engine.TestSource>
     
    Set<org.junit.platform.engine.TestTag>
     
    final org.junit.platform.engine.UniqueId
     
    final int
     
    void
    removeChild(org.junit.platform.engine.TestDescriptor child)
     
    void
     
    final void
    setParent(org.junit.platform.engine.TestDescriptor parent)
     
    void
    setUniqueId(org.junit.platform.engine.UniqueId uniqueId)
     
     

    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

    • children

      protected final Set<org.junit.platform.engine.TestDescriptor> children
  • Constructor Details

    • AbstractTestDescriptor

      protected AbstractTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, String displayName)
    • AbstractTestDescriptor

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

    • setUniqueId

      public void setUniqueId(org.junit.platform.engine.UniqueId uniqueId)
    • getUniqueId

      public final org.junit.platform.engine.UniqueId getUniqueId()
      Specified by:
      getUniqueId in interface org.junit.platform.engine.TestDescriptor
    • getDisplayName

      public final String getDisplayName()
      Specified by:
      getDisplayName in interface org.junit.platform.engine.TestDescriptor
    • getTags

      public Set<org.junit.platform.engine.TestTag> getTags()
      Specified by:
      getTags in interface org.junit.platform.engine.TestDescriptor
    • getSource

      public Optional<org.junit.platform.engine.TestSource> getSource()
      Specified by:
      getSource in interface org.junit.platform.engine.TestDescriptor
    • getParent

      public final Optional<org.junit.platform.engine.TestDescriptor> getParent()
      Specified by:
      getParent in interface org.junit.platform.engine.TestDescriptor
    • setParent

      public final void setParent(org.junit.platform.engine.TestDescriptor parent)
      Specified by:
      setParent in interface org.junit.platform.engine.TestDescriptor
    • getChildren

      public final Set<? extends org.junit.platform.engine.TestDescriptor> getChildren()
      Specified by:
      getChildren in interface org.junit.platform.engine.TestDescriptor
    • addChild

      public void addChild(org.junit.platform.engine.TestDescriptor child)
      Specified by:
      addChild in interface org.junit.platform.engine.TestDescriptor
    • removeChild

      public void removeChild(org.junit.platform.engine.TestDescriptor child)
      Specified by:
      removeChild in interface org.junit.platform.engine.TestDescriptor
    • removeFromHierarchy

      public void removeFromHierarchy()
      Specified by:
      removeFromHierarchy in interface org.junit.platform.engine.TestDescriptor
    • findByUniqueId

      public Optional<? extends org.junit.platform.engine.TestDescriptor> findByUniqueId(org.junit.platform.engine.UniqueId uniqueId)
      Specified by:
      findByUniqueId in interface org.junit.platform.engine.TestDescriptor
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public final boolean equals(Object other)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object