Package org.testng.internal
Class TestNGMethodFinder
- java.lang.Object
-
- org.testng.internal.TestNGMethodFinder
-
- All Implemented Interfaces:
ITestMethodFinder
public class TestNGMethodFinder extends java.lang.Object implements ITestMethodFinder
The default strategy for finding test methods: look up annotations @Test in front of methods.
-
-
Constructor Summary
Constructors Constructor Description TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder)
TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder, java.util.Comparator<ITestNGMethod> comparator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ITestNGMethod[]
getAfterClassMethods(java.lang.Class cls)
ITestNGMethod[]
getAfterGroupsConfigurationMethods(java.lang.Class clazz)
ITestNGMethod[]
getAfterSuiteMethods(java.lang.Class cls)
ITestNGMethod[]
getAfterTestConfigurationMethods(java.lang.Class clazz)
ITestNGMethod[]
getAfterTestMethods(java.lang.Class cls)
ITestNGMethod[]
getBeforeClassMethods(java.lang.Class cls)
ITestNGMethod[]
getBeforeGroupsConfigurationMethods(java.lang.Class clazz)
ITestNGMethod[]
getBeforeSuiteMethods(java.lang.Class cls)
ITestNGMethod[]
getBeforeTestConfigurationMethods(java.lang.Class clazz)
ITestNGMethod[]
getBeforeTestMethods(java.lang.Class cls)
ITestNGMethod[]
getTestMethods(java.lang.Class<?> clazz, XmlTest xmlTest)
-
-
-
Constructor Detail
-
TestNGMethodFinder
public TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder)
-
TestNGMethodFinder
public TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder, java.util.Comparator<ITestNGMethod> comparator)
-
-
Method Detail
-
getTestMethods
public ITestNGMethod[] getTestMethods(java.lang.Class<?> clazz, XmlTest xmlTest)
- Specified by:
getTestMethods
in interfaceITestMethodFinder
- Returns:
- All the applicable test methods.
-
getBeforeClassMethods
public ITestNGMethod[] getBeforeClassMethods(java.lang.Class cls)
- Specified by:
getBeforeClassMethods
in interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
- 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 interfaceITestMethodFinder
-
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class clazz)
- Specified by:
getAfterTestConfigurationMethods
in interfaceITestMethodFinder
-
getBeforeGroupsConfigurationMethods
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class clazz)
- Specified by:
getBeforeGroupsConfigurationMethods
in interfaceITestMethodFinder
-
getAfterGroupsConfigurationMethods
public ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class clazz)
- Specified by:
getAfterGroupsConfigurationMethods
in interfaceITestMethodFinder
-
-