BeforeClassWithInfo

public abstract @interface BeforeClassWithInfo
implements Annotation

com.android.tradefed.testtype.junit4.BeforeClassWithInfo


Jaminan yang serupa dengan BeforeClass, tetapi metode yang dianotasi harus memerlukan parameter TestInformation. Berjalan SEBELUM metode beforeClass.

Penggunaan TestInformation.properties() dapat membantu meneruskan informasi antara konteks statis & non-statis.

Contoh:

@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }

Lihat juga: