org.testng.junit
Class JUnitMethodFinder
java.lang.Object
org.testng.junit.JUnitMethodFinder
- All Implemented Interfaces:
- ITestMethodFinder
public class JUnitMethodFinder
- extends Object
- implements ITestMethodFinder
This class locates all test and configuration methods according to JUnit.
It is used to change the strategy used by TestRunner to locate its test
methods.
- Author:
- Cedric Beust, May 3, 2004
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitMethodFinder
public JUnitMethodFinder(String testName,
org.testng.internal.annotations.IAnnotationFinder finder)
getTestMethods
public ITestNGMethod[] getTestMethods(Class cls,
XmlTest xmlTest)
- Specified by:
getTestMethods
in interface ITestMethodFinder
- Returns:
- All the applicable test methods.
getBeforeTestMethods
public ITestNGMethod[] getBeforeTestMethods(Class cls)
- Specified by:
getBeforeTestMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
before a test method is invoked.
getAfterTestMethods
public ITestNGMethod[] getAfterTestMethods(Class cls)
- Specified by:
getAfterTestMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
after a test method completes.
getAfterClassMethods
public ITestNGMethod[] getAfterClassMethods(Class cls)
- Specified by:
getAfterClassMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
after the test class has been created and after
all its test methods have completed.
getBeforeClassMethods
public ITestNGMethod[] getBeforeClassMethods(Class cls)
- Specified by:
getBeforeClassMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
after the test class has been created and before
any of its test methods is invoked.
getBeforeSuiteMethods
public ITestNGMethod[] getBeforeSuiteMethods(Class cls)
- Specified by:
getBeforeSuiteMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
before the suite starts running.
getAfterSuiteMethods
public ITestNGMethod[] getAfterSuiteMethods(Class cls)
- Specified by:
getAfterSuiteMethods
in interface ITestMethodFinder
- Returns:
- All the methods that should be invoked
after the suite has run all its tests.
getBeforeTestConfigurationMethods
public ITestNGMethod[] getBeforeTestConfigurationMethods(Class testClass)
- Specified by:
getBeforeTestConfigurationMethods
in interface ITestMethodFinder
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods(Class testClass)
- Specified by:
getAfterTestConfigurationMethods
in interface ITestMethodFinder
getBeforeGroupsConfigurationMethods
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(Class testClass)
- Specified by:
getBeforeGroupsConfigurationMethods
in interface ITestMethodFinder
getAfterGroupsConfigurationMethods
public ITestNGMethod[] getAfterGroupsConfigurationMethods(Class testClass)
- Specified by:
getAfterGroupsConfigurationMethods
in interface ITestMethodFinder
Copyright © 2010. All Rights Reserved.