Home | History | Annotate | Download | only in testng
      1 package org.testng;
      2 
      3 /**
      4  * This class is used by TestNG to locate the test classes.
      5  *
      6  * @author <a href="mailto:cedric (at) beust.com">Cedric Beust</a>
      7  */
      8 public interface ITestClassFinder {
      9   /**
     10    * @return An array of all the classes that contain test
     11    * methods.  This method usually returns an array of one
     12    * class, which is the class on which TestNG is running,
     13    * except in the following cases.
     14    * - TestNG:  the class contains an @Factory method
     15    * - JUnit:  the class contains a suite() method
     16    */
     17   public IClass[] findTestClasses();
     18 
     19   /**
     20    * Return the IClass for a given class
     21    */
     22   public IClass getIClass(Class cls);
     23 
     24 }
     25