設備參數化運行器
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 |