public class TestNGMethodFinder extends java.lang.Object implements ITestMethodFinder
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
TestNGMethodFinder.MethodType |
| Modifier and Type | Field and Description |
|---|---|
private IAnnotationFinder |
annotationFinder |
private java.util.Comparator<ITestNGMethod> |
comparator |
private static java.util.Comparator<ITestNGMethod> |
NO_COMPARISON |
private RunInfo |
runInfo |
| Constructor and Description |
|---|
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder) |
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder,
java.util.Comparator<ITestNGMethod> comparator) |
| Modifier and Type | Method and Description |
|---|---|
private void |
addConfigurationMethod(java.lang.Class<?> clazz,
java.util.List<ITestNGMethod> results,
java.lang.reflect.Method method,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeTestMethod,
boolean isAfterTestMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance) |
private ITestNGMethod[] |
findConfiguration(java.lang.Class clazz,
TestNGMethodFinder.MethodType configurationType) |
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) |
private static final java.util.Comparator<ITestNGMethod> NO_COMPARISON
private RunInfo runInfo
private IAnnotationFinder annotationFinder
private final java.util.Comparator<ITestNGMethod> comparator
public TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder)
public TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder, java.util.Comparator<ITestNGMethod> comparator)
public ITestNGMethod[] getTestMethods(java.lang.Class<?> clazz, XmlTest xmlTest)
getTestMethods in interface ITestMethodFinderpublic ITestNGMethod[] getBeforeClassMethods(java.lang.Class cls)
getBeforeClassMethods in interface ITestMethodFinderpublic ITestNGMethod[] getAfterClassMethods(java.lang.Class cls)
getAfterClassMethods in interface ITestMethodFinderpublic ITestNGMethod[] getBeforeTestMethods(java.lang.Class cls)
getBeforeTestMethods in interface ITestMethodFinderpublic ITestNGMethod[] getAfterTestMethods(java.lang.Class cls)
getAfterTestMethods in interface ITestMethodFinderpublic ITestNGMethod[] getBeforeSuiteMethods(java.lang.Class cls)
getBeforeSuiteMethods in interface ITestMethodFinderpublic ITestNGMethod[] getAfterSuiteMethods(java.lang.Class cls)
getAfterSuiteMethods in interface ITestMethodFinderpublic ITestNGMethod[] getBeforeTestConfigurationMethods(java.lang.Class clazz)
getBeforeTestConfigurationMethods in interface ITestMethodFinderpublic ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class clazz)
getAfterTestConfigurationMethods in interface ITestMethodFinderpublic ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class clazz)
getBeforeGroupsConfigurationMethods in interface ITestMethodFinderpublic ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class clazz)
getAfterGroupsConfigurationMethods in interface ITestMethodFinderprivate ITestNGMethod[] findConfiguration(java.lang.Class clazz, TestNGMethodFinder.MethodType configurationType)
private void addConfigurationMethod(java.lang.Class<?> clazz,
java.util.List<ITestNGMethod> results,
java.lang.reflect.Method method,
boolean isBeforeSuite,
boolean isAfterSuite,
boolean isBeforeTest,
boolean isAfterTest,
boolean isBeforeClass,
boolean isAfterClass,
boolean isBeforeTestMethod,
boolean isAfterTestMethod,
java.lang.String[] beforeGroups,
java.lang.String[] afterGroups,
java.lang.Object instance)