BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
Podobne gwarancje jak w przypadku BeforeClass
, ale metoda oznaczona adnotacją musi wymagać parametru TestInformation
. Uruchamia się PRZED metodami beforeClass.
Za pomocą TestInformation.properties()
możesz przekazywać informacje między kontekstem statycznym a niestatycznym.
Przykład:
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Zobacz też: