DeviceParameterizedRunner
public
class
DeviceParameterizedRunner
extends JUnitParamsRunner
implements
IDeviceTest,
IBuildReceiver,
IAbiReceiver,
ISetOptionReceiver,
IMultiDeviceTest,
IInvocationContextReceiver
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()
|
ITestDevice
|
getDevice()
Get the device under test. |
void
|
setAbi(IAbi abi)
|
void
|
setBuild(IBuildInfo buildInfo)
|
void
|
setDevice(ITestDevice device)
Inject the device under test. |
void
|
setDeviceInfos(
|
void
|
setInvocationContext(IInvocationContext invocationContext)
|
Protected methods | |
---|---|
Statement
|
methodInvoker(FrameworkMethod method, Object testObj)
|
Public constructors
DeviceParameterizedRunner
public DeviceParameterizedRunner (Class<?> klass)
Throws | |
---|---|
InitializationError |
Public methods
getDevice
public ITestDevice getDevice ()
Get the device under test.
Returns | |
---|---|
ITestDevice |
the ITestDevice
|
setDevice
public void setDevice (ITestDevice device)
Inject the device under test.
Parameters | |
---|---|
device |
ITestDevice : the ITestDevice to use
|
setDeviceInfos
public void setDeviceInfos (deviceInfos)
Parameters | |
---|---|
deviceInfos |
|
setInvocationContext
public void setInvocationContext (IInvocationContext invocationContext)
Parameters | |
---|---|
invocationContext |
IInvocationContext |
Protected methods
methodInvoker
protected Statement methodInvoker (FrameworkMethod method, Object testObj)
Parameters | |
---|---|
method |
FrameworkMethod |
testObj |
Object |
Returns | |
---|---|
Statement |