डिवाइसJUnit4ClassRunner
public class DeviceJUnit4ClassRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
extends BlockJUnit4ClassRunner
java.lang.Object |
↳ | org.junit.runner.runner |
| ↳ | org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod> |
| | ↳ | org.junit.runners.BlockJUnit4ClassRunner |
| | | ↳ | com.android.tradefed.testtype.DeviceJUnit4ClassRunner |
JUnit4 टेस्ट रनर जो IDeviceTest
भी समायोजित करता है। रनविथ एनोटेशन के साथ JUnit4 टेस्ट के ऊपर निर्दिष्ट किया जाना चाहिए।
सारांश
नेस्टेड कक्षाएं |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation पत्रकारों के लिए लॉग ले जाने के लिए नकली एनोटेशन का मतलब है। |
class | DeviceJUnit4ClassRunner.MetricAnnotation फर्जी एनोटेशन का मतलब पत्रकारों तक मेट्रिक्स ले जाना था। |
class | DeviceJUnit4ClassRunner.TestLogData ExternalResource और TestRule का कार्यान्वयन। |
class | DeviceJUnit4ClassRunner.TestMetrics ExternalResource और TestRule का कार्यान्वयन। |
संरक्षित तरीके |
---|
Object | createTest () डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं। |
void | runChild (FrameworkMethod method, RunNotifier notifier) |
Statement | withAfterClasses (Statement statement) |
Statement | withBeforeClasses (Statement statement) |
सार्वजनिक निर्माणकर्ता
डिवाइसJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
फेंकता |
---|
InitializationError | |
सार्वजनिक तरीके
getAbi
public IAbi getAbi ()
दौड़ना
public void run (RunNotifier notifier)
पैरामीटर |
---|
notifier | RunNotifier |
सेताबी
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
पैरामीटर |
---|
testInformation | TestInformation |
संरक्षित तरीके
createTest
protected Object createTest ()
डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं।
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
पैरामीटर |
---|
method | FrameworkMethod |
notifier | RunNotifier |
आफ्टरक्लासेस के साथ
protected Statement withAfterClasses (Statement statement)
पैरामीटर |
---|
statement | Statement |
पहले कक्षाओं के साथ
protected Statement withBeforeClasses (Statement statement)
पैरामीटर |
---|
statement | Statement |
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2023-04-28 (UTC) को अपडेट किया गया.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"वह जानकारी मौजूद नहीं है जो मुझे चाहिए"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"बहुत मुश्किल है / बहुत सारे चरण हैं"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"पुराना"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"अनुवाद से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"सैंपल / कोड से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"अन्य"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"समझने में आसान है"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"मेरी समस्या हल हो गई"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"अन्य"
}]