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 boolean |
shouldCreateBeforeAfterGroup(java.lang.String[] groups,
IAnnotationFinder finder,
java.lang.Class<?> clazz,
boolean isInheritGroups) |
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 ITestMethodFinder
public ITestNGMethod[] getBeforeClassMethods(java.lang.Class cls)
getBeforeClassMethods
in interface ITestMethodFinder
public ITestNGMethod[] getAfterClassMethods(java.lang.Class cls)
getAfterClassMethods
in interface ITestMethodFinder
public ITestNGMethod[] getBeforeTestMethods(java.lang.Class cls)
getBeforeTestMethods
in interface ITestMethodFinder
public ITestNGMethod[] getAfterTestMethods(java.lang.Class cls)
getAfterTestMethods
in interface ITestMethodFinder
public ITestNGMethod[] getBeforeSuiteMethods(java.lang.Class cls)
getBeforeSuiteMethods
in interface ITestMethodFinder
public ITestNGMethod[] getAfterSuiteMethods(java.lang.Class cls)
getAfterSuiteMethods
in interface ITestMethodFinder
public ITestNGMethod[] getBeforeTestConfigurationMethods(java.lang.Class clazz)
getBeforeTestConfigurationMethods
in interface ITestMethodFinder
public ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class clazz)
getAfterTestConfigurationMethods
in interface ITestMethodFinder
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class clazz)
getBeforeGroupsConfigurationMethods
in interface ITestMethodFinder
public ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class clazz)
getAfterGroupsConfigurationMethods
in interface ITestMethodFinder
private ITestNGMethod[] findConfiguration(java.lang.Class clazz, TestNGMethodFinder.MethodType configurationType)
private static boolean shouldCreateBeforeAfterGroup(java.lang.String[] groups, IAnnotationFinder finder, java.lang.Class<?> clazz, boolean isInheritGroups)
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)