org.testng
Interface IClass

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
ITestClass
All Known Implementing Classes:
TestClass

public interface IClass
extends java.io.Serializable

IClass represents a test class and a collection of its instances.

Author:
Cedric Beust

Method Summary
 void addInstance(java.lang.Object instance)
           
 int getInstanceCount()
           
 long[] getInstanceHashCodes()
           
 java.lang.Object[] getInstances(boolean create)
           
 java.lang.String getName()
           
 java.lang.Class getRealClass()
           
 java.lang.String getTestName()
          If this class implements ITest, returns its test name, otherwise returns null.
 

Method Detail

getName

java.lang.String getName()
Returns:
this test class name. This is the name of the corresponding Java class.

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)