com.beust.testng
Interface ITestClass

All Superinterfaces:
IClass
All Known Implementing Classes:
TestClass

public interface ITestClass
extends IClass

This class represents a test class: - The test methods - The configuration methods (test and method) - The class file Note that the methods returned by instances of this class are expected to be correct at runtime. In other words, they might differ from what the ITestMethodFinder returned since ITestClass will take into account the groups being included and excluded.

Author:
cbeust

Method Summary
 ITestNGMethod[] getAfterClassMethods()
           
 ITestNGMethod[] getAfterTestMethods()
           
 ITestNGMethod[] getBeforeClassMethods()
           
 ITestNGMethod[] getBeforeTestMethods()
           
 java.lang.Object[] getInstances()
           
 ITestNGMethod[] getTestMethods()
           
 
Methods inherited from interface com.beust.testng.IClass
addInstance, getName, getRealClass
 

Method Detail

getInstances

java.lang.Object[] getInstances()
Specified by:
getInstances in interface IClass
Returns:
All the instances the methods will be invoked upon. This will typically be an array of one object in the absence of an @Factory annotation.

getTestMethods

ITestNGMethod[] getTestMethods()
Returns:
All the applicable test methods.

getBeforeTestMethods

ITestNGMethod[] getBeforeTestMethods()
Returns:
All the methods that should be invoked before a test method is invoked.

getAfterTestMethods

ITestNGMethod[] getAfterTestMethods()
Returns:
All the methods that should be invoked after a test method completes.

getBeforeClassMethods

ITestNGMethod[] getBeforeClassMethods()
Returns:
All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.

getAfterClassMethods

ITestNGMethod[] getAfterClassMethods()
Returns:
All the methods that should be invoked after the test class has been created and after all its test methods have completed.