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

получить информацию о тестировании

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

Защищенные методы

создатьТест

protected Object createTest ()

Мы переопределяем метод createTest, чтобы установить устройство.

Возвраты
Object

Броски
Exception

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

Параметры
method FrameworkMethod

notifier RunNotifier

с AfterClasses

protected Statement withAfterClasses (Statement statement)

Параметры
statement Statement

Возвраты
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Параметры
statement Statement

Возвраты
Statement