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


Executor parametrizado no estilo JUnit4 para testes parametrizados controlados pelo lado do host.

Esse executor é baseado em JUnitParamsRunner e não no Parameterized nativo do JUnit4, mas o executor nativo parametrizado não é muito bom e não permite executar um único método.

Confira também:

Resumo

Construtores 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)

Construtores públicos

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Gera
org.junit.runners.model.InitializationError
InitializationError

Métodos públicos

getAbi

public IAbi getAbi ()

Retorna
IAbi

getTestInformation

public TestInformation getTestInformation ()

Retorna
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 ()

Retorna
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

Retorna
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Parâmetros
method FrameworkMethod

testObj Object

Retorna
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Parâmetros
statement Statement

Retorna
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Parâmetros
statement Statement

Retorna
Statement