BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
Garanties similaires à celles de BeforeClass
, mais la méthode annotée doit nécessiter un paramètre TestInformation
. S'exécute AVANT les méthodes beforeClass.
L'utilisation de TestInformation.properties()
peut aider à transmettre des informations entre un contexte statique et un contexte non statique.
Exemple :
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Voir aussi :