org.testng.internal
Class TestNGMethodFinder<ITestNGMetthod>
java.lang.Object
org.testng.internal.TestNGMethodFinder<ITestNGMetthod>
- Type Parameters:
ITestNGMetthod
-
- All Implemented Interfaces:
- ITestMethodFinder
public class TestNGMethodFinder<ITestNGMetthod>
- extends java.lang.Object
- implements ITestMethodFinder
The default strategy for finding test methods: look up
annotations @Test in front of methods.
- Author:
- Cedric Beust, May 3, 2004, Alexandru Popescu
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TestNGMethodFinder
public TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder)
getTestMethods
public ITestNGMethod[] getTestMethods(java.lang.Class clazz)
- Specified by:
getTestMethods
in interface ITestMethodFinder
- Returns:
- All the applicable test methods.
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.
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.
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.
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 clazz)
- Specified by:
getBeforeTestConfigurationMethods
in interface ITestMethodFinder
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class clazz)
- Specified by:
getAfterTestConfigurationMethods
in interface ITestMethodFinder
getBeforeGroupsConfigurationMethods
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class clazz)
- Specified by:
getBeforeGroupsConfigurationMethods
in interface ITestMethodFinder
getAfterGroupsConfigurationMethods
public ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class clazz)
- Specified by:
getAfterGroupsConfigurationMethods
in interface ITestMethodFinder
Copyright © 2010. All Rights Reserved.