org.testng.junit
Class JUnitMethodFinder
java.lang.Object
org.testng.junit.JUnitMethodFinder
- All Implemented Interfaces:
- ITestMethodFinder
public class JUnitMethodFinder
- extends java.lang.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
Constructor Summary |
JUnitMethodFinder(java.lang.String testName,
org.testng.internal.annotations.IAnnotationFinder finder)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JUnitMethodFinder
public JUnitMethodFinder(java.lang.String testName,
org.testng.internal.annotations.IAnnotationFinder finder)
getTestMethods
public ITestNGMethod[] getTestMethods(java.lang.Class cls,
XmlTest xmlTest)
- Specified by:
getTestMethods
in interface ITestMethodFinder
- Returns:
- All the applicable test methods.
getBeforeTestMethods
public ITestNGMethod[] getBeforeTestMethods(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.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(java.lang.Class testClass)
- Specified by:
getBeforeTestConfigurationMethods
in interface ITestMethodFinder
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class testClass)
- Specified by:
getAfterTestConfigurationMethods
in interface ITestMethodFinder
getBeforeGroupsConfigurationMethods
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class testClass)
- Specified by:
getBeforeGroupsConfigurationMethods
in interface ITestMethodFinder
getAfterGroupsConfigurationMethods
public ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class testClass)
- Specified by:
getAfterGroupsConfigurationMethods
in interface ITestMethodFinder
Copyright © 2011. All Rights Reserved.