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 IAnnotationFinder
Deprecated.private final ITestObjectFactory
Deprecated. -
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:
getTestMethods
in interfaceITestMethodFinder
- Parameters:
cls
- The test classxmlTest
- The test node of xml- Returns:
- All the applicable test methods.
-
privateFindTestMethods
Deprecated. -
getBeforeTestMethods
Deprecated.- Specified by:
getBeforeTestMethods
in interfaceITestMethodFinder
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before a test method is invoked.
-
getAfterTestMethods
Deprecated.- Specified by:
getAfterTestMethods
in interfaceITestMethodFinder
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked after a test method completes.
-
getAfterClassMethods
Deprecated.- Specified by:
getAfterClassMethods
in 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:
getBeforeClassMethods
in 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:
getBeforeSuiteMethods
in interfaceITestMethodFinder
- Parameters:
cls
- The test class- Returns:
- All the methods that should be invoked before the suite starts running.
-
getAfterSuiteMethods
Deprecated.- Specified by:
getAfterSuiteMethods
in 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:
getBeforeTestConfigurationMethods
in interfaceITestMethodFinder
-
getAfterTestConfigurationMethods
Deprecated.- Specified by:
getAfterTestConfigurationMethods
in interfaceITestMethodFinder
-
getBeforeGroupsConfigurationMethods
Deprecated.- Specified by:
getBeforeGroupsConfigurationMethods
in interfaceITestMethodFinder
-
getAfterGroupsConfigurationMethods
Deprecated.- Specified by:
getAfterGroupsConfigurationMethods
in interfaceITestMethodFinder
-
7.7.0