package org.testng;
import org.testng.xml.XmlTest;
This interface allows to modify the strategy used by TestRunner
to find its test methods. At the time of this writing, TestNG
supports two different strategies: TestNG (using annotations to
locate these methods) and JUnit (setUp()/tearDown() and all
methods that start with "test" or have a suite() method).
Author: Cedric Beust, May 3, 2004
/**
* This interface allows to modify the strategy used by TestRunner
* to find its test methods. At the time of this writing, TestNG
* supports two different strategies: TestNG (using annotations to
* locate these methods) and JUnit (setUp()/tearDown() and all
* methods that start with "test" or have a suite() method).
*
* @author Cedric Beust, May 3, 2004
*
*/
public interface ITestMethodFinder {
Returns: All the applicable test methods.
/**
* @return All the applicable test methods.
*/
ITestNGMethod[] getTestMethods(Class<?> cls, XmlTest xmlTest);
Returns: All the methods that should be invoked
before a test method is invoked.
/**
* @return All the methods that should be invoked
* before a test method is invoked.
*/
ITestNGMethod[] getBeforeTestMethods(Class<?> cls);
Returns: All the methods that should be invoked
after a test method completes.
/**
* @return All the methods that should be invoked
* after a test method completes.
*/
ITestNGMethod[] getAfterTestMethods(Class<?> cls);
Returns: All the methods that should be invoked
after the test class has been created and before
any of its test methods is invoked.
/**
* @return All the methods that should be invoked
* after the test class has been created and before
* any of its test methods is invoked.
*/
ITestNGMethod[] getBeforeClassMethods(Class<?> cls);
Returns: All the methods that should be invoked
after the test class has been created and after
all its test methods have completed.
/**
* @return All the methods that should be invoked
* after the test class has been created and after
* all its test methods have completed.
*/
ITestNGMethod[] getAfterClassMethods(Class<?> cls);
Returns: All the methods that should be invoked
before the suite starts running.
/**
* @return All the methods that should be invoked
* before the suite starts running.
*/
ITestNGMethod[] getBeforeSuiteMethods(Class<?> cls);
Returns: All the methods that should be invoked
after the suite has run all its tests.
/**
* @return All the methods that should be invoked
* after the suite has run all its tests.
*/
ITestNGMethod[] getAfterSuiteMethods(Class<?> cls);
ITestNGMethod[] getBeforeTestConfigurationMethods(Class<?> testClass);
ITestNGMethod[] getAfterTestConfigurationMethods(Class<?> testClass);
ITestNGMethod[] getBeforeGroupsConfigurationMethods(Class<?> testClass);
ITestNGMethod[] getAfterGroupsConfigurationMethods(Class<?> testClass);
}