testng 7.10.2
org.testng.annotations
ObjectFactory
Top
Description
Methods
org.testng.annotations
public
@Interface ObjectFactory
extends
Annotation
Annotations
@Retention
:
RUNTIME
@Target
:
METHOD
Imports
java.
lang.
annotation.
Retention
,
.Target
Marks a method as the object factory to use for creating all test instances. The test classes can only contain one method marked with this annotation, and the method must return an instance of
org.
testng.
ITestObjectFactory
.
Method Summary
Inherited from
java.lang.annotation.Annotation
:
annotationType
equals
hashCode
toString