डिवाइस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 का कार्यान्वयन।

सार्वजनिक निर्माणकर्ता

DeviceJUnit4ClassRunner (Class<?> klass)

सार्वजनिक तरीके

IAbi getAbi ()
TestInformation getTestInformation ()
void run (RunNotifier notifier)
void setAbi ( IAbi abi)
void setTestInformation ( TestInformation testInformation)

संरक्षित तरीके

Object createTest ()

डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं।

void runChild (FrameworkMethod method, RunNotifier notifier)
Statement withAfterClasses (Statement statement)
Statement withBeforeClasses (Statement statement)

सार्वजनिक निर्माणकर्ता

डिवाइसJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

पैरामीटर
klass Class

फेंकता
InitializationError

सार्वजनिक तरीके

getAbi

public IAbi getAbi ()

रिटर्न
IAbi

getTestInformation

public TestInformation getTestInformation ()

रिटर्न
TestInformation

दौड़ना

public void run (RunNotifier notifier)

पैरामीटर
notifier RunNotifier

सेताबी

public void setAbi (IAbi abi)

पैरामीटर
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

पैरामीटर
testInformation TestInformation

संरक्षित तरीके

createTest

protected Object createTest ()

डिवाइस को सेट करने के लिए हम createTest को ओवरराइड करते हैं।

रिटर्न
Object

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

पैरामीटर
method FrameworkMethod

notifier RunNotifier

आफ्टरक्लासेस के साथ

protected Statement withAfterClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement

पहले कक्षाओं के साथ

protected Statement withBeforeClasses (Statement statement)

पैरामीटर
statement Statement

रिटर्न
Statement