com.beust.testng
Interface ITestMethodFinder
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
getTestMethods
ITestNGMethod[] getTestMethods(java.lang.Class cls)
- Returns:
- All the applicable test methods.
getBeforeTestMethods
ITestNGMethod[] getBeforeTestMethods(java.lang.Class cls)
- Returns:
- All the methods that should be invoked
before a test method is invoked.
getAfterTestMethods
ITestNGMethod[] getAfterTestMethods(java.lang.Class cls)
- Returns:
- All the methods that should be invoked
after a test method completes.
getBeforeClassMethods
ITestNGMethod[] getBeforeClassMethods(java.lang.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.
getAfterClassMethods
ITestNGMethod[] getAfterClassMethods(java.lang.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.