ตั้งแต่วันที่ 27 มีนาคม 2025 เป็นต้นไป เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main เพื่อสร้างและมีส่วนร่วมใน AOSP โปรดดูข้อมูลเพิ่มเติมที่หัวข้อการเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
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
|
รันเนอร์แบบพารามิเตอร์สไตล์ JUnit4 สําหรับการทดสอบแบบพารามิเตอร์ที่ขับเคลื่อนโดยฝั่งโฮสต์
โปรแกรมรันนี้อิงตาม JUnitParamsRunner ไม่ใช่ Parameterized เนทีฟของ JUnit4 แต่โปรแกรมรันที่มีพารามิเตอร์แบบเนทีฟนั้นไม่ค่อยดีนักและไม่อนุญาตให้เรียกใช้เมธอดเดียว
สรุป
ตัวสร้างแบบสาธารณะ
DeviceParameterizedRunner
public DeviceParameterizedRunner (Class<?> klass)
| การโยน |
|
org.junit.runners.model.InitializationError |
InitializationError |
|
เมธอดสาธารณะ
getAbi
public IAbi getAbi ()
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
| พารามิเตอร์ |
testInformation |
TestInformation |
วิธีการที่มีการป้องกัน
methodInvoker
protected Statement methodInvoker (FrameworkMethod method,
Object testObj)
| พารามิเตอร์ |
method |
FrameworkMethod |
testObj |
Object |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
| พารามิเตอร์ |
statement |
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
| พารามิเตอร์ |
statement |
Statement |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-07-27 UTC
[null,null,["อัปเดตล่าสุด 2025-07-27 UTC"],[],[]]