Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.testng
Interface IClass

All Superinterfaces:
  java.io.Serializable

All Known Subinterfaces:
  ITestClass

All Known Implementing Classes:
  org.testng.internal.NoOpTestClass, 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)

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD