BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
Similar guarantees as BeforeClass
but method annotated must require a TestInformation
parameter. Runs BEFORE beforeClass methods.
Using TestInformation#properties()
can help passing information between static &
non-static context.
Example:
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
See also: