Package org.testng.internal
Class BaseClassFinder
java.lang.Object
org.testng.internal.BaseClassFinder
- All Implemented Interfaces:
ITestClassFinder
- Direct Known Subclasses:
TestNGClassFinder
This class
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
classExists
(Class<?> cls) protected IClass
findOrCreateIClass
(ITestContext context, Class<?> cls, XmlClass xmlClass, Object instance, IAnnotationFinder annotationFinder, ITestObjectFactory objectFactory) IClass[]
Return the IClass for a given classprotected void
-
Field Details
-
m_classes
-
-
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, Object 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
-