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ố hóa kiểu JUnit4 cho các thử nghiệm được tham số hóa 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 JUnit4 Parameterized
hóa gốc nhưng trình chạy được tham số hóa 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.
Bản tóm tắt
phương pháp được bảo vệ |
---|
Statement | methodInvoker (FrameworkMethod method, Object testObj) |
nhà thầu công cộng
DeviceParameterizedRunner
public DeviceParameterizedRunner (Class<?> klass)
ném |
---|
| org.junit.runners.model.InitializationError |
InitializationError | |
Phương thức công khai
getAbi
public IAbi getAbi ()
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Thông số |
---|
testInformation | TestInformation |
phương pháp được bảo vệ
phương thứcInvoker
protected Statement methodInvoker (FrameworkMethod method,
Object testObj)
Thông số |
---|
method | FrameworkMethod |
testObj | Object |