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 Test עם הערת RunWith.

סיכום

כיתות מקוננות

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)

בנאים ציבוריים

DeviceJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

פרמטרים
klass Class

זורק
InitializationError

שיטות ציבוריות

getAbi

public IAbi getAbi ()

החזרות
IAbi

getTestInformation

public TestInformation getTestInformation ()

החזרות
TestInformation

לָרוּץ

public void run (RunNotifier notifier)

פרמטרים
notifier RunNotifier

setAbi

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

עם Before Classes

protected Statement withBeforeClasses (Statement statement)

פרמטרים
statement Statement

החזרות
Statement