BeforeClassWithInfo
public
abstract
@interface
BeforeClassWithInfo
implements
Annotation
com.android.tradefed.testtype.junit4.BeforeClassWithInfo |
BeforeClass
जैसी ही गारंटी, लेकिन एनोटेट किए गए तरीके के लिए TestInformation
पैरामीटर ज़रूरी है. beforeClass मेथड से पहले चलता है.
TestInformation.properties()
का इस्तेमाल करके, स्टैटिक और नॉन-स्टैटिक कॉन्टेक्स्ट के बीच जानकारी भेजी जा सकती है.
उदाहरण:
@BeforeClassWithInfo public static void beforeClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
इन्हें भी देखें: