org.testng.annotations
Annotation Type ObjectFactory


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface ObjectFactory

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 IObjectFactory.

Since:
5.6
Author:
Hani Suleiman



Copyright © 2010. All Rights Reserved.