Class ClassDescriptor

  • All Implemented Interfaces:
    org.junit.platform.engine.TestDescriptor

    class ClassDescriptor
    extends org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
    • Constructor Summary

      Constructors 
      Constructor Description
      ClassDescriptor​(org.junit.platform.engine.UniqueId uniqueId, java.lang.Class<?> testClass, java.util.Set<org.junit.platform.engine.TestTag> tags)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addChild​(org.junit.platform.engine.TestDescriptor child)  
      private static java.lang.String determineDisplayName​(java.lang.Class<?> testClass)  
      java.util.Optional<MethodDescriptor> findMethodDescriptor​(org.testng.ITestResult result)  
      java.lang.String getLegacyReportingName()  
      java.util.Set<org.junit.platform.engine.TestTag> getTags()  
      (package private) java.lang.Class<?> getTestClass()  
      org.junit.platform.engine.TestDescriptor.Type getType()  
      void includeTestMethod​(java.lang.String methodName)  
      void prepareExecution()  
      void removeChild​(org.junit.platform.engine.TestDescriptor child)  
      void selectEntireClass()  
      private java.lang.String toChildKey​(org.junit.platform.engine.TestDescriptor child)  
      • Methods inherited from class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor

        equals, findByUniqueId, getChildren, getDisplayName, getParent, getSource, getUniqueId, hashCode, 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, isContainer, isRoot, isTest, mayRegisterTests, prune
    • Field Detail

      • methodsById

        private final java.util.concurrent.ConcurrentMap<java.lang.String,​MethodDescriptor> methodsById
      • testClass

        private final java.lang.Class<?> testClass
      • tags

        private final java.util.Set<org.junit.platform.engine.TestTag> tags
      • remainingIterations

        final java.util.concurrent.atomic.AtomicInteger remainingIterations
    • Constructor Detail

      • ClassDescriptor

        ClassDescriptor​(org.junit.platform.engine.UniqueId uniqueId,
                        java.lang.Class<?> testClass,
                        java.util.Set<org.junit.platform.engine.TestTag> tags)
    • Method Detail

      • determineDisplayName

        private static java.lang.String determineDisplayName​(java.lang.Class<?> testClass)
      • getLegacyReportingName

        public java.lang.String getLegacyReportingName()
      • getTestClass

        java.lang.Class<?> getTestClass()
      • getType

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

        public java.util.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
      • addChild

        public void addChild​(org.junit.platform.engine.TestDescriptor child)
        Specified by:
        addChild in interface org.junit.platform.engine.TestDescriptor
        Overrides:
        addChild in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
      • removeChild

        public void removeChild​(org.junit.platform.engine.TestDescriptor child)
        Specified by:
        removeChild in interface org.junit.platform.engine.TestDescriptor
        Overrides:
        removeChild in class org.junit.platform.engine.support.descriptor.AbstractTestDescriptor
      • toChildKey

        private java.lang.String toChildKey​(org.junit.platform.engine.TestDescriptor child)
      • findMethodDescriptor

        public java.util.Optional<MethodDescriptor> findMethodDescriptor​(org.testng.ITestResult result)
      • includeTestMethod

        public void includeTestMethod​(java.lang.String methodName)
      • selectEntireClass

        public void selectEntireClass()
      • prepareExecution

        public void prepareExecution()