Top Description Methods
org.testng

public Interface IInstanceInfo<T>

Known Direct Implementers
org.testng.internal.InstanceInfo

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

Method Summary

Modifier and TypeMethod and Description
public T

Returns:

The instance on which the tests will be invoked.
getInstance
()

public Class<T>

Returns:

The class on which the TestNG annotations should be looked for.
getInstanceClass
()

Method Detail

getInstanceback to summary
public T getInstance()
Returns:T

The instance on which the tests will be invoked.

getInstanceClassback to summary
public Class<T> getInstanceClass()
Returns:Class<T>

The class on which the TestNG annotations should be looked for.