CihazJUnit4ClassRunner

public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver

java.lang.Nesne
org.junit.runner.Runner
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
org.junit.runners.BlockJUnit4ClassRunner
com.android.tradefed.testtype.DeviceJUnit4ClassRunner


IDeviceTest'i de barındıran IDeviceTest test çalıştırıcısı. JUnit4 Testi üzerinde RunWith ek açıklamasıyla belirtilmelidir.

Özet

iç içe sınıflar

class DeviceJUnit4ClassRunner.LogAnnotation

Günlükleri muhabirlere taşımak için sahte açıklama.

class DeviceJUnit4ClassRunner.MetricAnnotation

Sahte ek açıklama, ölçümleri muhabirlere taşımayı amaçlıyordu.

class DeviceJUnit4ClassRunner.TestLogData

ExternalResource ve TestRule uygulanması.

class DeviceJUnit4ClassRunner.TestMetrics

ExternalResource ve TestRule uygulanması.

Kamu inşaatçıları

DeviceJUnit4ClassRunner (Class<?> klass)

Genel yöntemler

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

Korumalı yöntemler

Object createTest ()

Cihazı ayarlamak için createTest'i geçersiz kılıyoruz.

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

Kamu inşaatçıları

CihazJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

parametreler
klass Class

atar
InitializationError

Genel yöntemler

getAbi

public IAbi getAbi ()

İadeler
IAbi

getTestInformation

public TestInformation getTestInformation ()

İadeler
TestInformation

koşmak

public void run (RunNotifier notifier)

parametreler
notifier RunNotifier

setAbi

public void setAbi (IAbi abi)

parametreler
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

parametreler
testInformation TestInformation

Korumalı yöntemler

oluşturTest

protected Object createTest ()

Cihazı ayarlamak için createTest'i geçersiz kılıyoruz.

İadeler
Object

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

parametreler
method FrameworkMethod

notifier RunNotifier

ileAfterClasses

protected Statement withAfterClasses (Statement statement)

parametreler
statement Statement

İadeler
Statement

ileÖnceSınıflar

protected Statement withBeforeClasses (Statement statement)

parametreler
statement Statement

İadeler
Statement