org.testng
Interface IInstanceInfo


public interface IInstanceInfo

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
 java.lang.Object getInstance()
           
 java.lang.Class getInstanceClass()
           
 

Method Detail

getInstance

java.lang.Object getInstance()
Returns:
The instance on which the tests will be invoked.

getInstanceClass

java.lang.Class getInstanceClass()
Returns:
The class on which the TestNG annotations should be looked for.