org.testng
Interface IClass
- All Superinterfaces:
- Serializable
- All Known Subinterfaces:
- ITestClass
- All Known Implementing Classes:
- JUnit3TestClass, JUnit4TestClass, JUnitTestClass
public interface IClass
- extends Serializable
IClass
represents a test class and a collection of its instances.
- Author:
- Cedric Beust
getName
String getName()
- Returns:
- this test class name. This is the name of the
corresponding Java class.
getXmlTest
XmlTest getXmlTest()
- Returns:
- the <test> tag this class was found in.
getXmlClass
XmlClass getXmlClass()
- Returns:
- the *lt;class> tag this class was found in.
getTestName
String getTestName()
- If this class implements ITest, returns its test name, otherwise returns null.
getRealClass
Class getRealClass()
- Returns:
- the Java class corresponding to this IClass.
getInstances
Object[] getInstances(boolean create)
getInstanceCount
int getInstanceCount()
getInstanceHashCodes
long[] getInstanceHashCodes()
addInstance
void addInstance(Object instance)
Copyright © 2013. All Rights Reserved.