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); }
참고: