Class VintageTestDescriptor

java.lang.Object
org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
org.junit.vintage.engine.descriptor.VintageTestDescriptor
All Implemented Interfaces:
org.junit.platform.engine.TestDescriptor
Direct Known Subclasses:
RunnerTestDescriptor

@API(status=INTERNAL, since="4.12") public class VintageTestDescriptor extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
Since:
4.12
  • 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 org.junit.runner.Description
     
    static final String
     
    static final String
     
    static final String
     
    static final String
     

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

    children
  • Constructor Summary

    Constructors
    Constructor
    Description
    VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, String displayName, org.junit.platform.engine.TestSource source)
     
    VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, org.junit.platform.engine.TestSource source)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private void
    addCategoriesAsTags(Set<org.junit.platform.engine.TestTag> tags)
     
    private void
    addTagsFromParent(Set<org.junit.platform.engine.TestTag> tags)
     
    protected boolean
     
    private static String
    generateDisplayName(org.junit.runner.Description description)
     
    org.junit.runner.Description
     
     
    Set<org.junit.platform.engine.TestTag>
     
    org.junit.platform.engine.TestDescriptor.Type
     
    (package private) void
    pruneDescriptorsForObsoleteDescriptions(List<org.junit.runner.Description> newSiblingDescriptions)
     
    void
     
    protected boolean
    tryToExcludeFromRunner(org.junit.runner.Description description)
     

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

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

    Methods inherited from class Object

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

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

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

  • Constructor Details

    • VintageTestDescriptor

      public VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, org.junit.platform.engine.TestSource source)
    • VintageTestDescriptor

      VintageTestDescriptor(org.junit.platform.engine.UniqueId uniqueId, org.junit.runner.Description description, String displayName, org.junit.platform.engine.TestSource source)
  • Method Details

    • generateDisplayName

      private static String generateDisplayName(org.junit.runner.Description description)
    • getDescription

      public org.junit.runner.Description getDescription()
    • getLegacyReportingName

      public String getLegacyReportingName()
    • getType

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

      public Set<org.junit.platform.engine.TestTag> getTags()
      Specified by:
      getTags in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      getTags in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • removeFromHierarchy

      public void removeFromHierarchy()
      Specified by:
      removeFromHierarchy in interface org.junit.platform.engine.TestDescriptor
      Overrides:
      removeFromHierarchy in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • canBeRemovedFromHierarchy

      protected boolean canBeRemovedFromHierarchy()
    • tryToExcludeFromRunner

      protected boolean tryToExcludeFromRunner(org.junit.runner.Description description)
    • pruneDescriptorsForObsoleteDescriptions

      void pruneDescriptorsForObsoleteDescriptions(List<org.junit.runner.Description> newSiblingDescriptions)
    • addTagsFromParent

      private void addTagsFromParent(Set<org.junit.platform.engine.TestTag> tags)
    • addCategoriesAsTags

      private void addCategoriesAsTags(Set<org.junit.platform.engine.TestTag> tags)