TearDownPassThroughPreparer
public
class
TearDownPassThroughPreparer
extends BaseTargetPreparer
implements
IConfigurationReceiver
java.lang.Object | ||
↳ | com.android.tradefed.targetprep.BaseTargetPreparer | |
↳ | com.android.tradefed.targetprep.TearDownPassThroughPreparer |
यह उन प्रिपरर पर tearDown चलाने की अनुमति देता है जिन्हें कॉन्फ़िगरेशन में ऑब्जेक्ट के तौर पर शामिल किया गया है.
जब किसी कॉन्फ़िगरेशन में, ITargetPreparer
के बजाय ऑब्जेक्ट के तौर पर कोई प्रिपरर शामिल किया जाता है, तो उसका tearDown नहीं बुलाया जाएगा. इस प्रिपरर से इसका रेफ़रंस देने पर, यह पक्का हो जाएगा कि इसका tearDown फ़ंक्शन कॉल किया जाएगा.
खास जानकारी
पब्लिक कंस्ट्रक्टर | |
---|---|
TearDownPassThroughPreparer()
|
सार्वजनिक तरीके | |
---|---|
void
|
setConfiguration(IConfiguration configuration)
इस्तेमाल में मौजूद |
void
|
setUp(TestInformation testInfo)
|
void
|
tearDown(TestInformation testInfo, Throwable e)
|
पब्लिक कंस्ट्रक्टर
TearDownPassThroughPreparer
public TearDownPassThroughPreparer ()
सार्वजनिक तरीके
setConfiguration
public void setConfiguration (IConfiguration configuration)
इस्तेमाल में मौजूद IConfiguration
को इंजेक्ट करता है.
पैरामीटर | |
---|---|
configuration |
IConfiguration |
tearDown
public void tearDown (TestInformation testInfo, Throwable e)
पैरामीटर | |
---|---|
testInfo |
TestInformation |
e |
Throwable |
थ्रो | |
---|---|
DeviceNotAvailableException |