Package org.testng

Interface IObjectFactory2

  • All Superinterfaces:
    ITestObjectFactory

    public interface IObjectFactory2
    extends ITestObjectFactory
    Factory used to create all test instances. This object factory only receives the class in parameter.
    Since:
    5.14.6
    Author:
    Cedric Beust
    See Also:
    IObjectFactory
    • Method Detail

      • newInstance

        java.lang.Object newInstance​(java.lang.Class<?> cls)