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); }
関連項目: