BeforeClassWithInfo

public abstract @interface BeforeClassWithInfo
implements Annotation

com.android.tradefed.testtype.junit4.BeforeClassWithInfo


ضمانت‌های مشابه BeforeClass اما روش مشروح شده باید به پارامتر TestInformation نیاز داشته باشد. قبل از متدهای BeforeClass اجرا می شود.

استفاده از TestInformation.properties() می تواند به انتقال اطلاعات بین زمینه استاتیک و غیراستاتیک کمک کند.

مثال:

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

همچنین ببینید: