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); }

另见: