org.testng.annotations.ObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of testng Show documentation
Show all versions of testng Show documentation
Testing framework for Java
package org.testng.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.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
* {@link org.testng.ITestObjectFactory}.
*/
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Target(java.lang.annotation.ElementType.METHOD)
public @interface ObjectFactory {}