public class TestNGMethodFinder extends java.lang.Object implements ITestMethodFinder
Modifier and Type | Field and Description |
---|---|
private static int |
AFTER_CLASS |
private static int |
AFTER_GROUPS |
private static int |
AFTER_SUITE |
private static int |
AFTER_TEST |
private static int |
AFTER_TEST_METHOD |
private static int |
BEFORE_CLASS |
private static int |
BEFORE_GROUPS |
private static int |
BEFORE_SUITE |
private static int |
BEFORE_TEST |
private static int |
BEFORE_TEST_METHOD |
private IAnnotationFinder |
m_annotationFinder |
private RunInfo |
m_runInfo |
Constructor and Description |
---|
TestNGMethodFinder(RunInfo runInfo,
IAnnotationFinder annotationFinder) |
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,
int 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 int BEFORE_SUITE
private static final int AFTER_SUITE
private static final int BEFORE_TEST
private static final int AFTER_TEST
private static final int BEFORE_CLASS
private static final int AFTER_CLASS
private static final int BEFORE_TEST_METHOD
private static final int AFTER_TEST_METHOD
private static final int BEFORE_GROUPS
private static final int AFTER_GROUPS
private RunInfo m_runInfo
private IAnnotationFinder m_annotationFinder
public TestNGMethodFinder(RunInfo runInfo, IAnnotationFinder annotationFinder)
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, int 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)