Package org.testng
Interface IObjectFactory2
- All Superinterfaces:
ITestObjectFactory
Deprecated.
- This interface stands deprecated as of TestNG 7.5.0
Factory used to create all test instances. This object factory only receives the class in
parameter.
- Since:
- 5.14.6
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondefault Object
newInstance
(Class<?> cls) Deprecated.- This interface stands deprecated as of TestNG 7.5.0Methods inherited from interface org.testng.ITestObjectFactory
newInstance, newInstance, newInstance
-
Method Details
-
newInstance
Deprecated.- This interface stands deprecated as of TestNG 7.5.0- Parameters:
cls
- - The class for which a new instance is to be created- Returns:
- - The newly created object.
-