Package org.testng.junit
Class JUnitMethodFinder
java.lang.Object
org.testng.junit.JUnitMethodFinder
- All Implemented Interfaces:
ITestMethodFinder
Deprecated.
This class locates all test and configuration methods according to JUnit. It is used to change
the strategy used by TestRunner to locate its test methods.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final IAnnotationFinderDeprecated.private final ITestObjectFactoryDeprecated. -
Constructor Summary
ConstructorsConstructorDescriptionJUnitMethodFinder(ITestObjectFactory objectFactory, IAnnotationFinder finder) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongetAfterClassMethods(Class<?> cls) Deprecated.getAfterGroupsConfigurationMethods(Class<?> testClass) Deprecated.getAfterSuiteMethods(Class<?> cls) Deprecated.getAfterTestConfigurationMethods(Class<?> testClass) Deprecated.getAfterTestMethods(Class<?> cls) Deprecated.getBeforeClassMethods(Class<?> cls) Deprecated.getBeforeGroupsConfigurationMethods(Class<?> testClass) Deprecated.getBeforeSuiteMethods(Class<?> cls) Deprecated.getBeforeTestConfigurationMethods(Class<?> testClass) Deprecated.getBeforeTestMethods(Class<?> cls) Deprecated.getTestMethods(Class<?> cls, XmlTest xmlTest) Deprecated.private ITestNGMethod[]privateFindTestMethods(INameFilter filter, Class<?> cls) Deprecated.
-
Field Details
-
objectFactory
Deprecated. -
m_annotationFinder
Deprecated.
-
-
Constructor Details
-
JUnitMethodFinder
Deprecated.
-
-
Method Details
-
getTestMethods
Deprecated.- Specified by:
getTestMethodsin interfaceITestMethodFinder- Parameters:
cls- The test classxmlTest- The test node of xml- Returns:
- All the applicable test methods.
-
privateFindTestMethods
Deprecated. -
getBeforeTestMethods
Deprecated.- Specified by:
getBeforeTestMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked before a test method is invoked.
-
getAfterTestMethods
Deprecated.- Specified by:
getAfterTestMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked after a test method completes.
-
getAfterClassMethods
Deprecated.- Specified by:
getAfterClassMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked after the test class has been created and after all its test methods have completed.
-
getBeforeClassMethods
Deprecated.- Specified by:
getBeforeClassMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.
-
getBeforeSuiteMethods
Deprecated.- Specified by:
getBeforeSuiteMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked before the suite starts running.
-
getAfterSuiteMethods
Deprecated.- Specified by:
getAfterSuiteMethodsin interfaceITestMethodFinder- Parameters:
cls- The test class- Returns:
- All the methods that should be invoked after the suite has run all its tests.
-
getBeforeTestConfigurationMethods
Deprecated.- Specified by:
getBeforeTestConfigurationMethodsin interfaceITestMethodFinder
-
getAfterTestConfigurationMethods
Deprecated.- Specified by:
getAfterTestConfigurationMethodsin interfaceITestMethodFinder
-
getBeforeGroupsConfigurationMethods
Deprecated.- Specified by:
getBeforeGroupsConfigurationMethodsin interfaceITestMethodFinder
-
getAfterGroupsConfigurationMethods
Deprecated.- Specified by:
getAfterGroupsConfigurationMethodsin interfaceITestMethodFinder
-
7.7.0