设备参数化运行器
public class DeviceParameterizedRunner
extends JUnitParamsRunner
implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver
java.lang.Object |
↳ | org.junit.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
,但原生参数化运行器并不是很好,并且不允许运行单个方法。
概括
受保护的方法 |
---|
Statement | methodInvoker (FrameworkMethod method, Object testObj) |
公共构造函数
设备参数化运行器
public DeviceParameterizedRunner (Class<?> klass)
投掷 |
---|
| org.junit.runners.model.InitializationError |
InitializationError | |
公共方法
得到阿比
public IAbi getAbi ()
设置Abi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
参数 |
---|
testInformation | TestInformation |
受保护的方法
方法调用者
protected Statement methodInvoker (FrameworkMethod method,
Object testObj)
参数 |
---|
method | FrameworkMethod |
testObj | Object |