org.testng
Interface IClass
- All Superinterfaces:
- java.io.Serializable
- All Known Subinterfaces:
- ITestClass
public interface IClass
- extends java.io.Serializable
IClass
represents a test class and a collection of its instances.
- Author:
- Cedric Beust
getName
java.lang.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
java.lang.String getTestName()
- If this class implements ITest, returns its test name, otherwise returns null.
getRealClass
java.lang.Class getRealClass()
- Returns:
- the Java class corresponding to this IClass.
getInstances
java.lang.Object[] getInstances(boolean create)
getInstanceCount
int getInstanceCount()
getInstanceHashCodes
long[] getInstanceHashCodes()
addInstance
void addInstance(java.lang.Object instance)