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

참고: