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


Uruchamiający test JUnit4, który obsługuje też IDeviceTest. Należy go określić powyżej JUnit4. Testuj za pomocą adnotacji RunWith.

Podsumowanie

Zagnieżdżone klasy

class DeviceJUnit4ClassRunner.LogAnnotation

fałszywe adnotacje mające przenosić logi do reporterów. 

class DeviceJUnit4ClassRunner.MetricAnnotation

fałszywa adnotacja, która ma przenosić dane do raportów; 

class DeviceJUnit4ClassRunner.TestLogData

Wdróż ExternalResourceTestRule

class DeviceJUnit4ClassRunner.TestMetrics

Wdróż ExternalResourceTestRule

Konstruktory publiczne

DeviceJUnit4ClassRunner(Class<?> klass)

Metody publiczne

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

Chronione metody

Object createTest()

Zastępujemy createTest, aby skonfigurować urządzenie.

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

Konstruktory publiczne

DeviceJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

Parametry
klass Class

Rzuty
InitializationError

Metody publiczne

getAbi

public IAbi getAbi ()

Zwroty
IAbi

getTestInformation

public TestInformation getTestInformation ()

Zwroty
TestInformation

home run

public void run (RunNotifier notifier)

Parametry
notifier RunNotifier

setAbi

public void setAbi (IAbi abi)

Parametry
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parametry
testInformation TestInformation

Chronione metody

createTest

protected Object createTest ()

Zastępujemy createTest, aby skonfigurować urządzenie.

Zwroty
Object

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

Parametry
method FrameworkMethod

notifier RunNotifier

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Parametry
statement Statement

Zwroty
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Parametry
statement Statement

Zwroty
Statement