BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
Garanzie simili a BeforeClass
, ma il metodo annotato deve richiedere un parametro TestInformation
. Viene eseguito PRIMA dei metodi beforeClass.
L'utilizzo di TestInformation.properties()
può essere utile per trasmettere informazioni tra contesti statici e non statici.
Esempio:
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Vedi anche: