AvantClasseAvecInfo

public abstract @interface BeforeClassWithInfo
implements Annotation

com.android.tradefed.testtype.junit4.BeforeClassWithInfo


Des garanties similaires à BeforeClass mais la méthode annotée doit nécessiter un paramètre TestInformation . Exécute les méthodes BEFORE beforeClass.

L'utilisation TestInformation#properties() peut aider à transmettre des informations entre un contexte statique et non statique.

Exemple:

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

Voir également: