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); }
另請參閱: