DeviceParameterizedRunner

public class DeviceParameterizedRunner
extends JUnitParamsRunner implements IAbiReceiver, ISetOptionReceiver, ITestInformationReceiver

java.lang.Object
org.junit.runner.Runner
  org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    org.junit.runners.BlockJUnit4ClassRunner
      junitparams.JUnitParamsRunner
        com.android.tradefed.testtype.junit4.DeviceParameterizedRunner


Es un ejecutor parametrizado de estilo JUnit4 para pruebas parametrizadas controladas por el host.

Este ejecutor se basa en JUnitParamsRunner y no en Parameterized nativo de JUnit4, pero el ejecutor parametrizado nativo no es muy bueno y no permite ejecutar un solo método.

También:

Resumen

Constructores públicos

DeviceParameterizedRunner(Class<?> klass)

Métodos públicos

IAbi getAbi()
TestInformation getTestInformation()
void setAbi(IAbi abi)
void setTestInformation(TestInformation testInformation)

Métodos protegidos

ITestDevice getDevice()
List<String> getKeyValueOptions()
Statement methodInvoker(FrameworkMethod method, Object testObj)
Statement withAfterClasses(Statement statement)
Statement withBeforeClasses(Statement statement)

Constructores públicos

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Arroja
org.junit.runners.model.InitializationError
InitializationError

Métodos públicos

getAbi

public IAbi getAbi ()

Devuelve
IAbi

getTestInformation

public TestInformation getTestInformation ()

Devuelve
TestInformation

setAbi

public void setAbi (IAbi abi)

Parámetros
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parámetros
testInformation TestInformation

Métodos protegidos

getDevice

protected ITestDevice getDevice ()

Devuelve
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

Devuelve
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Parámetros
method FrameworkMethod

testObj Object

Devuelve
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Parámetros
statement Statement

Devuelve
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Parámetros
statement Statement

Devuelve
Statement