Class BaseClassFinder

    • Constructor Detail

      • BaseClassFinder

        public BaseClassFinder()
    • Method Detail

      • getIClass

        public IClass getIClass​(java.lang.Class<?> cls)
        Description copied from interface: ITestClassFinder
        Return the IClass for a given class
        Specified by:
        getIClass in interface ITestClassFinder
        Parameters:
        cls - The class
        Returns:
        The related IClass
      • putIClass

        protected void putIClass​(java.lang.Class<?> cls,
                                 IClass iClass)
      • classExists

        protected boolean classExists​(java.lang.Class<?> cls)
      • findTestClasses

        public IClass[] findTestClasses()
        Specified by:
        findTestClasses in interface ITestClassFinder
        Returns:
        An array of all the classes that contain test methods. This method usually returns an array of one class, which is the class on which TestNG is running, except in the following cases. - TestNG: the class contains an @Factory method - JUnit: the class contains a suite() method