org.testng.internal
Class BaseClassFinder
java.lang.Object
org.testng.internal.BaseClassFinder
- All Implemented Interfaces:
- ITestClassFinder
- Direct Known Subclasses:
- TestNGClassFinder
public abstract class BaseClassFinder
- extends java.lang.Object
- implements ITestClassFinder
This class
- Author:
- Cedric Beust
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BaseClassFinder
public BaseClassFinder()
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
putIClass
protected void putIClass(java.lang.Class cls,
IClass iClass)
findOrCreateIClass
protected IClass findOrCreateIClass(java.lang.Class cls,
java.lang.Object instance,
XmlTest xmlTest,
IAnnotationFinder annotationFinder,
IObjectFactory objectFactory)
- Parameters:
cls
-
- Returns:
- An IClass for the given class, or null if we have
already treated this class.
getExistingClasses
protected java.util.Map getExistingClasses()
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
Copyright © 2010. All Rights Reserved.