อุปกรณ์ ParameterizedRunner

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)

ผู้รับเหมาก่อสร้างสาธารณะ

อุปกรณ์ ParameterizedRunner

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

วิธีการที่ได้รับการป้องกัน

methodInviver

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

พารามิเตอร์
method FrameworkMethod

testObj Object

การส่งคืน
Statement