Package org.testng
Interface ITestMethodFinder
-
- All Known Implementing Classes:
JUnitMethodFinder
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).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ITestNGMethod[]
getAfterClassMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getAfterGroupsConfigurationMethods(java.lang.Class<?> testClass)
ITestNGMethod[]
getAfterSuiteMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getAfterTestConfigurationMethods(java.lang.Class<?> testClass)
ITestNGMethod[]
getAfterTestMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getBeforeClassMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getBeforeGroupsConfigurationMethods(java.lang.Class<?> testClass)
ITestNGMethod[]
getBeforeSuiteMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getBeforeTestConfigurationMethods(java.lang.Class<?> testClass)
ITestNGMethod[]
getBeforeTestMethods(java.lang.Class<?> cls)
ITestNGMethod[]
getTestMethods(java.lang.Class<?> cls, XmlTest xmlTest)
-
-
-
Method Detail
-
getTestMethods
ITestNGMethod[] getTestMethods(java.lang.Class<?> cls, XmlTest xmlTest)
- Parameters:
cls
- The test classxmlTest
- The test node of xml- Returns:
- All the applicable test methods.
-
getBeforeTestMethods
ITestNGMethod[] getBeforeTestMethods(java.lang.Class<?> cls)
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before a test method is invoked.
-
getAfterTestMethods
ITestNGMethod[] getAfterTestMethods(java.lang.Class<?> cls)
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after a test method completes.
-
getBeforeClassMethods
ITestNGMethod[] getBeforeClassMethods(java.lang.Class<?> cls)
- 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
ITestNGMethod[] getAfterClassMethods(java.lang.Class<?> cls)
- 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
ITestNGMethod[] getBeforeSuiteMethods(java.lang.Class<?> cls)
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before the suite starts running.
-
getAfterSuiteMethods
ITestNGMethod[] getAfterSuiteMethods(java.lang.Class<?> cls)
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after the suite has run all its tests.
-
getBeforeTestConfigurationMethods
ITestNGMethod[] getBeforeTestConfigurationMethods(java.lang.Class<?> testClass)
-
getAfterTestConfigurationMethods
ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class<?> testClass)
-
getBeforeGroupsConfigurationMethods
ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class<?> testClass)
-
getAfterGroupsConfigurationMethods
ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class<?> testClass)
-
-