BeforeClassWithInfo

public abstract @interface BeforeClassWithInfo
implements Annotation

com.android.tradefed.testtype.junit4.BeforeClassWithInfo


Garanzie simili a BeforeClass ma il metodo annotato devono richiedere un parametro TestInformation . Viene eseguito PRIMA dei metodi beforeClass.

L'uso TestInformation#properties() può aiutare a passare informazioni tra contesto statico e non statico.

Esempio:

@BeforeClassWithInfo public static void beforeClassWithInfo (TestInformation testInfo) { assertNotNull (dispositivo); }

Guarda anche: