Package org.testng.junit
Class JUnitMethodFinder
- java.lang.Object
-
- org.testng.junit.JUnitMethodFinder
-
- All Implemented Interfaces:
ITestMethodFinder
@Deprecated public class JUnitMethodFinder extends java.lang.Object implements ITestMethodFinder
Deprecated.- Support for running JUnit tests stands deprecated as of TestNG7.7.0
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
Fields Modifier and Type Field Description private IAnnotationFinder
m_annotationFinder
Deprecated.private ITestObjectFactory
objectFactory
Deprecated.
-
Constructor Summary
Constructors Constructor Description JUnitMethodFinder(ITestObjectFactory objectFactory, IAnnotationFinder finder)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ITestNGMethod[]
getAfterClassMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getAfterGroupsConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.ITestNGMethod[]
getAfterSuiteMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getAfterTestConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.ITestNGMethod[]
getAfterTestMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getBeforeClassMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getBeforeGroupsConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.ITestNGMethod[]
getBeforeSuiteMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getBeforeTestConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.ITestNGMethod[]
getBeforeTestMethods(java.lang.Class<?> cls)
Deprecated.ITestNGMethod[]
getTestMethods(java.lang.Class<?> cls, XmlTest xmlTest)
Deprecated.private ITestNGMethod[]
privateFindTestMethods(INameFilter filter, java.lang.Class<?> cls)
Deprecated.
-
-
-
Field Detail
-
objectFactory
private final ITestObjectFactory objectFactory
Deprecated.
-
m_annotationFinder
private final IAnnotationFinder m_annotationFinder
Deprecated.
-
-
Constructor Detail
-
JUnitMethodFinder
public JUnitMethodFinder(ITestObjectFactory objectFactory, IAnnotationFinder finder)
Deprecated.
-
-
Method Detail
-
getTestMethods
public ITestNGMethod[] getTestMethods(java.lang.Class<?> cls, XmlTest xmlTest)
Deprecated.- Specified by:
getTestMethods
in interfaceITestMethodFinder
- Parameters:
cls
- The test classxmlTest
- The test node of xml- Returns:
- All the applicable test methods.
-
privateFindTestMethods
private ITestNGMethod[] privateFindTestMethods(INameFilter filter, java.lang.Class<?> cls)
Deprecated.
-
getBeforeTestMethods
public ITestNGMethod[] getBeforeTestMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getAfterTestMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getAfterClassMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getBeforeClassMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getBeforeSuiteMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getAfterSuiteMethods(java.lang.Class<?> cls)
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
public ITestNGMethod[] getBeforeTestConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.- Specified by:
getBeforeTestConfigurationMethods
in interfaceITestMethodFinder
-
getAfterTestConfigurationMethods
public ITestNGMethod[] getAfterTestConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.- Specified by:
getAfterTestConfigurationMethods
in interfaceITestMethodFinder
-
getBeforeGroupsConfigurationMethods
public ITestNGMethod[] getBeforeGroupsConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.- Specified by:
getBeforeGroupsConfigurationMethods
in interfaceITestMethodFinder
-
getAfterGroupsConfigurationMethods
public ITestNGMethod[] getAfterGroupsConfigurationMethods(java.lang.Class<?> testClass)
Deprecated.- Specified by:
getAfterGroupsConfigurationMethods
in interfaceITestMethodFinder
-
-