BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
BeforeClass
ile benzer garantiler sunar ancak ek açıklamalı yöntem için TestInformation
parametresi gerekir. beforeClass yöntemlerinden ÖNCE çalışır.
TestInformation.properties()
kullanmak, statik ve statik olmayan bağlamlar arasında bilgi aktarmanıza yardımcı olabilir.
Örnek:
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Bkz.