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 |
|