设备参数化运行器

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 风格的参数化运行器,用于主机端驱动的参数化测试。

该运行器基于JUnitParamsRunner ,而不是 JUnit4 原生Parameterized ,但原生参数化运行器并不是很好,并且不允许运行单个方法。

也可以看看:

概括

公共构造函数

DeviceParameterizedRunner (Class<?> klass)

公共方法

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

受保护的方法

Statement methodInvoker (FrameworkMethod method, Object testObj)

公共构造函数

设备参数化运行器

public DeviceParameterizedRunner (Class<?> klass)

投掷
org.junit.runners.model.InitializationError
InitializationError

公共方法

获取阿比

public IAbi getAbi ()

退货
IAbi

获取测试信息

public TestInformation getTestInformation ()

退货
TestInformation

设置阿比

public void setAbi (IAbi abi)

参数
abi IAbi

设置测试信息

public void setTestInformation (TestInformation testInformation)

参数
testInformation TestInformation

受保护的方法

方法调用者

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

参数
method FrameworkMethod

testObj Object

退货
Statement