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 booleanclassExists(Class<?> cls) protected IClassfindOrCreateIClass(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:ITestClassFinderReturn the IClass for a given class- Specified by:
getIClassin 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:
findTestClassesin 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
-