AfterClassWithInfo
public
abstract
@interface
AfterClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.AfterClassWithInfo |
Có các đảm bảo tương tự như AfterClass
, nhưng phương thức được chú thích phải yêu cầu tham số TestInformation
. Chạy SAU các phương thức AfterClass.
Việc sử dụng TestInformation.properties()
có thể giúp truyền thông tin giữa ngữ cảnh tĩnh và không tĩnh.
Ví dụ:
@AfterClassWithInfo public static void afterClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Xem thêm: