DeviceParameterized Runner

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 Native Parameterized ، اما رانر پارامتری بومی واقعا خوب نیست و اجازه اجرای یک روش واحد را نمی دهد.

همچنین ببینید:

خلاصه

سازندگان عمومی

DeviceParameterizedRunner (Class<?> klass)

روش های عمومی

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

روش های محافظت شده

Statement methodInvoker (FrameworkMethod method, Object testObj)

سازندگان عمومی

DeviceParameterized Runner

public DeviceParameterizedRunner (Class<?> klass)

پرتاب می کند
org.junit.runners.model.InitializationError
InitializationError

روش های عمومی

getAbi

public IAbi getAbi ()

برمی گرداند
IAbi

getTestInformation

public TestInformation getTestInformation ()

برمی گرداند
TestInformation

setAbi

public void setAbi (IAbi abi)

مولفه های
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

مولفه های
testInformation TestInformation

روش های محافظت شده

روش Invoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

مولفه های
method FrameworkMethod

testObj Object

برمی گرداند
Statement