DeviceParameterizedRunner

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


Trình chạy được tham số hoá theo kiểu JUnit4 cho các kiểm thử được tham số hoá do phía máy chủ điều khiển.

Trình chạy này dựa trên JUnitParamsRunner chứ không phải Parameterized gốc của JUnit4, nhưng trình chạy được tham số hoá gốc không thực sự tốt và không cho phép chạy một phương thức duy nhất.

Xem thêm:

Tóm tắt

Hàm khởi tạo công khai

DeviceParameterizedRunner(Class<?> klass)

Phương thức công khai

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

Phương thức được bảo vệ

ITestDevice getDevice()
List<String> getKeyValueOptions()
Statement methodInvoker(FrameworkMethod method, Object testObj)
Statement withAfterClasses(Statement statement)
Statement withBeforeClasses(Statement statement)

Hàm khởi tạo công khai

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Gửi
org.junit.runners.model.InitializationError
InitializationError

Phương thức công khai

getAbi

public IAbi getAbi ()

Giá trị trả về
IAbi

getTestInformation

public TestInformation getTestInformation ()

Giá trị trả về
TestInformation

setAbi

public void setAbi (IAbi abi)

Tham số
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Tham số
testInformation TestInformation

Phương thức được bảo vệ

getDevice

protected ITestDevice getDevice ()

Giá trị trả về
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

Giá trị trả về
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Tham số
method FrameworkMethod

testObj Object

Giá trị trả về
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Tham số
statement Statement

Giá trị trả về
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Tham số
statement Statement

Trả về
Statement