Package org.testng.junit
Class JUnitTestClass
java.lang.Object
org.testng.junit.JUnitTestClass
- All Implemented Interfaces:
IClass
,ITestClass
- Direct Known Subclasses:
JUnit3TestClass
,JUnit4TestClass
Deprecated.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ITestNGMethod[]
Deprecated.private List
<ITestNGMethod> Deprecated.private List
<ITestNGMethod> Deprecated.private List
<ITestNGMethod> Deprecated.private List
<ITestNGMethod> Deprecated.private final long[]
Deprecated.private final Object[]
Deprecated.private final Class
<?> Deprecated.private List
<ITestNGMethod> Deprecated. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addInstance
(Object instance) Deprecated.Deprecated.Returns all the methods that should be invoked after all the tests have been run on this class.Deprecated.Returns all @Configuration methods that should be invoked after certain groups.Deprecated.Returns all the methods that should be invoked after the suite has run.Deprecated.Returns all @Configuration methods that should be invoked last before any others in the current test.Deprecated.Returns all the methods that should be invoked after a test method completes.Deprecated.Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.Deprecated.Returns all @Configuration methods that should be invoked before certain groups.Deprecated.Returns All the methods that should be invoked before the suite is run.Deprecated.Returns all @Configuration methods that should be invoked before any others in the current test.Deprecated.Returns all the methods that should be invoked before a test method is invoked.long[]
Deprecated.Object[]
getInstances
(boolean reuse) Deprecated.Returns all the instances the methods will be invoked upon.getName()
Deprecated.Deprecated.(package private) List
<ITestNGMethod> Deprecated.Deprecated.Returns all the applicable test methods.Deprecated.Deprecated.Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.testng.IClass
getInstances
-
Field Details
-
m_testMethods
Deprecated. -
m_beforeClass
Deprecated. -
m_afterClass
Deprecated. -
m_beforeTest
Deprecated. -
m_afterTest
Deprecated. -
m_realClass
Deprecated. -
m_instances
Deprecated. -
m_instanceHashes
private final long[] m_instanceHashesDeprecated. -
EMPTY_METHODARRAY
Deprecated.
-
-
Constructor Details
-
JUnitTestClass
Deprecated.
-
-
Method Details
-
getTestMethodList
List<ITestNGMethod> getTestMethodList()Deprecated. -
addInstance
Deprecated.- Specified by:
addInstance
in interfaceIClass
- See Also:
-
getName
Deprecated. -
getRealClass
Deprecated.- Specified by:
getRealClass
in interfaceIClass
- Returns:
- the Java class corresponding to this IClass.
- See Also:
-
getTestName
Deprecated.- Specified by:
getTestName
in interfaceIClass
- Returns:
- its test name if this class implements org.testng.ITest, null otherwise.
-
getXmlTest
Deprecated.- Specified by:
getXmlTest
in interfaceIClass
- Returns:
- the <test> tag this class was found in.
-
getXmlClass
Deprecated.- Specified by:
getXmlClass
in interfaceIClass
- Returns:
- the *lt;class> tag this class was found in.
-
getInstanceHashCodes
public long[] getInstanceHashCodes()Deprecated.- Specified by:
getInstanceHashCodes
in interfaceIClass
- See Also:
-
getInstances
Deprecated.Description copied from interface:IClass
Returns all the instances the methods will be invoked upon. This will typically be an array of one object in the absence of a @Factory annotation.- Specified by:
getInstances
in interfaceIClass
- Parameters:
reuse
- flag if a new set of instances must be returned (if set tofalse
)- Returns:
- All the instances the methods will be invoked upon.
- See Also:
-
getTestMethods
Deprecated.Description copied from interface:ITestClass
Returns all the applicable test methods.- Specified by:
getTestMethods
in interfaceITestClass
- Returns:
- All the applicable test methods.
- See Also:
-
getBeforeTestMethods
Deprecated.Description copied from interface:ITestClass
Returns all the methods that should be invoked before a test method is invoked.- Specified by:
getBeforeTestMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked before a test method is invoked.
- See Also:
-
getAfterTestMethods
Deprecated.Description copied from interface:ITestClass
Returns all the methods that should be invoked after a test method completes.- Specified by:
getAfterTestMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked after a test method completes.
- See Also:
-
getBeforeClassMethods
Deprecated.Description copied from interface:ITestClass
Return all the methods that should be invoked after the test class has been created and before any of its test methods is invoked.- Specified by:
getBeforeClassMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked after the test class has been created and before any of its test methods is invoked.
- See Also:
-
getAfterClassMethods
Deprecated.Description copied from interface:ITestClass
Returns all the methods that should be invoked after all the tests have been run on this class.- Specified by:
getAfterClassMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked after all the tests have been run on this class.
- See Also:
-
getBeforeSuiteMethods
Deprecated.Description copied from interface:ITestClass
Returns All the methods that should be invoked before the suite is run.- Specified by:
getBeforeSuiteMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked before the suite is run.
- See Also:
-
getAfterSuiteMethods
Deprecated.Description copied from interface:ITestClass
Returns all the methods that should be invoked after the suite has run.- Specified by:
getAfterSuiteMethods
in interfaceITestClass
- Returns:
- All the methods that should be invoked after the suite has run.
- See Also:
-
getBeforeGroupsMethods
Deprecated.Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked before certain groups.- Specified by:
getBeforeGroupsMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked before certain groups.
- See Also:
-
getAfterGroupsMethods
Deprecated.Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked after certain groups.- Specified by:
getAfterGroupsMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked after certain groups.
- See Also:
-
getBeforeTestConfigurationMethods
Deprecated.Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked before any others in the current test.- Specified by:
getBeforeTestConfigurationMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked before any others in the current test.
- See Also:
-
getAfterTestConfigurationMethods
Deprecated.Description copied from interface:ITestClass
Returns all @Configuration methods that should be invoked last before any others in the current test.- Specified by:
getAfterTestConfigurationMethods
in interfaceITestClass
- Returns:
- all @Configuration methods that should be invoked last before any others in the current test.
- See Also:
-
7.7.0