Package org.testng
Interface ITestMethodFinder
- All Known Implementing Classes:
TestNGMethodFinder
public interface ITestMethodFinder
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
-
Method Summary
Modifier and TypeMethodDescriptiongetAfterClassMethods
(Class<?> cls) getAfterGroupsConfigurationMethods
(Class<?> testClass) getAfterSuiteMethods
(Class<?> cls) getAfterTestConfigurationMethods
(Class<?> testClass) getAfterTestMethods
(Class<?> cls) getBeforeClassMethods
(Class<?> cls) getBeforeGroupsConfigurationMethods
(Class<?> testClass) getBeforeSuiteMethods
(Class<?> cls) getBeforeTestConfigurationMethods
(Class<?> testClass) getBeforeTestMethods
(Class<?> cls) getTestMethods
(Class<?> cls, XmlTest xmlTest)
-
Method Details
-
getTestMethods
- Parameters:
cls
- The test classxmlTest
- The test node of xml- Returns:
- All the applicable test methods.
-
getBeforeTestMethods
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before a test method is invoked.
-
getAfterTestMethods
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after a test method completes.
-
getBeforeClassMethods
- Parameters:
cls
- The test class- 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
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after the test class has been created and after all its test methods have completed.
-
getBeforeSuiteMethods
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before the suite starts running.
-
getAfterSuiteMethods
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after the suite has run all its tests.
-
getBeforeTestConfigurationMethods
-
getAfterTestConfigurationMethods
-
getBeforeGroupsConfigurationMethods
-
getAfterGroupsConfigurationMethods
-