बिफोरक्लासविथइन्फो

public abstract @interface BeforeClassWithInfo
implements Annotation

com.android.tradefed.testtype.junit4.BeforeClassWithInfo


पहले क्लास के समान गारंटी लेकिन एनोटेट की गई विधि के लिए BeforeClass पैरामीटर की आवश्यकता TestInformation चाहिए। पहले क्लास विधियों से पहले चलता है।

TestInformation#properties() का उपयोग करने से स्थैतिक और गैर-स्थैतिक संदर्भ के बीच जानकारी पास करने में मदद मिल सकती है।

उदाहरण:

@BeforeClassWithInfo सार्वजनिक स्थैतिक शून्य से पहले ClassWithInfo (TestInformation testInfo) {assertNotNull (डिवाइस); }

यह सभी देखें: