Package org.testng.internal
Class BaseClassFinder
java.lang.Object
org.testng.internal.BaseClassFinder
- All Implemented Interfaces:
ITestClassFinder
- Direct Known Subclasses:
TestNGClassFinder
This class
- Author:
- Cedric Beust
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
classExists
(Class<?> cls) protected IClass
findOrCreateIClass
(ITestContext context, Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) IClass[]
Return the IClass for a given classprotected void
-
Constructor Details
-
BaseClassFinder
public BaseClassFinder()
-
-
Method Details
-
getIClass
Description copied from interface:ITestClassFinder
Return the IClass for a given class- Specified by:
getIClass
in interfaceITestClassFinder
- Parameters:
cls
- The class- Returns:
- The related
IClass
-
putIClass
-
findOrCreateIClass
protected IClass findOrCreateIClass(ITestContext context, Class<?> cls, XmlClass xmlClass, IObject.IdentifiableObject instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) -
classExists
-
findTestClasses
- Specified by:
findTestClasses
in interfaceITestClassFinder
- 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
-