AfterClassWithInfo
public
abstract
@interface
AfterClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.AfterClassWithInfo |
與 AfterClass
類似,但方法註解必須要求 TestInformation
參數。在 AfterClass 方法之後執行。
使用 TestInformation.properties()
可在靜態與非靜態內容之間傳遞資訊。
示例:
@AfterClassWithInfo public static void afterClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
另請參閱: