DeviceJUnit4ClassRunner
public
class
DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
| 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 के ऊपर, RunWith एनोटेशन के साथ टेस्ट के ऊपर बताया जाना चाहिए.
खास जानकारी
नेस्ट की गई क्लास | |
|---|---|
class |
DeviceJUnit4ClassRunner.LogAnnotation
रिपोर्टर को लॉग भेजने के लिए बनाया गया फ़र्ज़ी एनोटेशन. |
class |
DeviceJUnit4ClassRunner.MetricAnnotation
रिपोर्टर को मेट्रिक भेजने के लिए फ़र्ज़ी एनोटेशन. |
class |
DeviceJUnit4ClassRunner.TestLogData
|
class |
DeviceJUnit4ClassRunner.TestMetrics
|
पब्लिक कंस्ट्रक्टर | |
|---|---|
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)
|
पब्लिक कंस्ट्रक्टर
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
| पैरामीटर | |
|---|---|
klass |
Class |
| थ्रो | |
|---|---|
InitializationError |
|
सार्वजनिक तरीके
रन
public void run (RunNotifier notifier)
| पैरामीटर | |
|---|---|
notifier |
RunNotifier |
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 |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
| पैरामीटर | |
|---|---|
statement |
Statement |
| रिटर्न | |
|---|---|
Statement |
|
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
| पैरामीटर | |
|---|---|
statement |
Statement |
| रिटर्न | |
|---|---|
Statement |
|