org.testng.internal
Class BaseClassFinder

java.lang.Object
  extended by 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

Constructor Summary
BaseClassFinder()
           
 
Method Summary
protected  boolean classExists(java.lang.Class cls)
           
protected  IClass findOrCreateIClass(java.lang.Class cls, java.lang.Object instance, XmlTest xmlTest, IAnnotationFinder annotationFinder, IObjectFactory objectFactory)
           
 IClass[] findTestClasses()
           
protected  java.util.Map getExistingClasses()
           
 IClass getIClass(java.lang.Class cls)
          Return the IClass for a given class
protected  void putIClass(java.lang.Class cls, IClass iClass)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseClassFinder

public BaseClassFinder()
Method Detail

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.