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

org.testng.IInstanceInfo Maven / Gradle / Ivy

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

/**
 * This class defines a pair of instance/class. A method with @Factory can return an array of these
 * objects instead of Object[] so that instances can be dynamic proxies or mock objects and still
 * provide enough information to TestNG to figure out what classes the annotations should be looked
 * up in.
 *
 * @author Cedric Beust
 */
public interface IInstanceInfo {

  /** @return The instance on which the tests will be invoked. */
  T getInstance();

  /** @return The class on which the TestNG annotations should be looked for. */
  Class getInstanceClass();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy