Top Description Methods
org.testng

public Interface ITestClassFinder

Known Direct Implementers
org.testng.internal.BaseClassFinder

This class is used by TestNG to locate the test classes.
Author
Cedric Beust

Method Summary

Modifier and TypeMethod and Description
public IClass[]

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
findTestClasses
()

public IClass

Returns:

The related IClass
getIClass
(Class<?>
The class
cls
)

Return the IClass for a given class

Method Detail

findTestClassesback to summary
public IClass[] findTestClasses()
Returns:IClass[]

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

getIClassback to summary
public IClass getIClass(Class<?> cls)

Return the IClass for a given class

Parameters
cls:Class<?>

The class

Returns:IClass

The related IClass