設備參數化運行器

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