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


JUnit4 style parameterized runner for host-side driven parameterized tests.

This runner is based on JUnitParamsRunner and not JUnit4 native Parameterized but the native parameterized runner is not really good and doesn't allow to run a single method.

See also:

Summary

Public constructors

DeviceParameterizedRunner(Class<?> klass)

Public methods

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

Protected methods

Statement methodInvoker(FrameworkMethod method, Object testObj)

Public constructors

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Throws
org.junit.runners.model.InitializationError
InitializationError

Public methods

getAbi

public IAbi getAbi ()

Returns
IAbi

getTestInformation

public TestInformation getTestInformation ()

Returns
TestInformation

setAbi

public void setAbi (IAbi abi)

Parameters
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parameters
testInformation TestInformation

Protected methods

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Parameters
method FrameworkMethod

testObj Object

Returns
Statement