BeforeClassWithInfo
public abstract @interface BeforeClassWithInfo
implements Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
ערבויות דומות לאלו של BeforeClass
אך עם הערות בשיטה חייבת לדרוש פרמטר TestInformation
. פועל בשיטות BEFORE beforeClass.
שימוש ב- TestInformation#properties()
יכול לעזור בהעברת מידע בין הקשר סטטי לא-סטטי.
דוגמא:
@BeforeClassWithInfo ריק סטטי ציבורי לפניClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
ראה גם: