IClass (TestNG)

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

    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.
`XmlClass` | `getXmlClass()`
`XmlTest` | `getXmlTest()`

Method Detail

### 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)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD