blob: 6ba6f8f425363c181ae2c25d471a446d8de480ef [file] [log] [blame]
package org.testng;
import java.io.Serializable;
/**
* <code>IClass</code> represents a test class and a collection of its instances.
*
* @author <a href = "mailto:cedric&#64;beust.com">Cedric Beust</a>
*/
public interface IClass extends Serializable {
/**
* @return this test class name. This is the name of the
* corresponding Java class.
*/
String getName();
/**
* @return the Java class corresponding to this IClass.
*/
Class getRealClass();
Object[] getInstances(boolean create);
int getInstanceCount();
long[] getInstanceHashCodes();
void addInstance(Object instance);
}