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


Runner con parametri in stile JUnit4 per test con parametri basati su host.

Questo runner si basa su JUnitParamsRunner e non su JUnit4 nativo Parameterized ma il runner parametrizzato nativo non è molto buono e non consente di eseguire un singolo metodo.

Vedi anche:

Riepilogo

Costruttori pubblici

DeviceParameterizedRunner(Class<?> klass)

Metodi pubblici

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

Metodi protetti

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

Costruttori pubblici

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Genera
org.junit.runners.model.InitializationError
InitializationError

Metodi pubblici

getAbi

public IAbi getAbi ()

Resi
IAbi

getTestInformation

public TestInformation getTestInformation ()

Resi
TestInformation

setAbi

public void setAbi (IAbi abi)

Parametri
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parametri
testInformation TestInformation

Metodi protetti

getDevice

protected ITestDevice getDevice ()

Resi
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

Resi
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Parametri
method FrameworkMethod

testObj Object

Resi
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Parametri
statement Statement

Resi
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Parametri
statement Statement

Risultati
Statement