All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.testng.IClass Maven / Gradle / Ivy

There is a newer version: 7.10.2
Show newest version
package org.testng;

import org.testng.xml.XmlClass;
import org.testng.xml.XmlTest;

import java.io.Serializable;

/**
 * IClass represents a test class and a collection of its instances.
 *
 * @author Cedric Beust
 */
public interface IClass extends Serializable {

  /**
   * @return this test class name.  This is the name of the
   * corresponding Java class.
   */
  String getName();

  /**
   * @return the <test> tag this class was found in.
   */
  XmlTest getXmlTest();

  /**
   * @return the *lt;class> tag this class was found in.
   */
  XmlClass getXmlClass();

  /**
   * If this class implements ITest, returns its test name, otherwise returns null.
   */
  String getTestName();

  /**
   * @return the Java class corresponding to this IClass.
   */
  Class getRealClass();

  Object[] getInstances(boolean create);

  int getInstanceCount();

  long[] getInstanceHashCodes();

  void addInstance(Object instance);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy