UrządzenieJUnit4ClassRunner

public class DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver

Obiekt 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


Narzędzie testowe JUnit4, które obsługuje również IDeviceTest . Należy określić powyżej testu JUnit4 z adnotacją RunWith.

Streszczenie

Zagnieżdżone klasy

class DeviceJUnit4ClassRunner.LogAnnotation

Fałszywa adnotacja mająca na celu przekazanie dzienników reporterom.

class DeviceJUnit4ClassRunner.MetricAnnotation

Fałszywa adnotacja mająca na celu przekazanie reporterom danych.

class DeviceJUnit4ClassRunner.TestLogData

Implementacja ExternalResource i TestRule .

class DeviceJUnit4ClassRunner.TestMetrics

Implementacja ExternalResource i TestRule .

Konstruktorzy publiczni

DeviceJUnit4ClassRunner (Class<?> klass)

Metody publiczne

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

Metody chronione

Object createTest ()

Zastępujemy metodę createTest w celu ustawienia urządzenia.

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

Konstruktorzy publiczni

UrządzenieJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

Parametry
klass Class

Rzuca
InitializationError

Metody publiczne

weźAbi

public IAbi getAbi ()

Zwroty
IAbi

pobierz informacje testowe

public TestInformation getTestInformation ()

Zwroty
TestInformation

uruchomić

public void run (RunNotifier notifier)

Parametry
notifier RunNotifier

ustawAbi

public void setAbi (IAbi abi)

Parametry
abi IAbi

zestaw informacji testowych

public void setTestInformation (TestInformation testInformation)

Parametry
testInformation TestInformation

Metody chronione

utwórzTest

protected Object createTest ()

Zastępujemy metodę createTest w celu ustawienia urządzenia.

Zwroty
Object

biegnijDziecko

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

Parametry
method FrameworkMethod

notifier RunNotifier

z zajęciami po zajęciach

protected Statement withAfterClasses (Statement statement)

Parametry
statement Statement

Zwroty
Statement

zPrzed zajęciami

protected Statement withBeforeClasses (Statement statement)

Parametry
statement Statement

Zwroty
Statement