1package org.testng.annotations; 2 3import static java.lang.annotation.ElementType.PARAMETER; 4 5import java.lang.annotation.Retention; 6import java.lang.annotation.Target; 7 8/** 9 * If this annotation is used on a parameter of a data provider, that parameter is the instance 10 * of the test method which is going to be fed by this data provider. 11 * 12 * This annotation is ignored everywhere else. 13 * 14 * @author cbeust 15 */ 16@Retention(java.lang.annotation.RetentionPolicy.RUNTIME) 17@Target({PARAMETER}) 18public @interface TestInstance { 19} 20