ตั้งแต่ปี 2026 เป็นต้นไป เราจะเผยแพร่ซอร์สโค้ดไปยัง AOSP ในไตรมาสที่ 2 และ 4 เพื่อให้สอดคล้องกับโมเดลการพัฒนาที่เสถียรของ Trunk และรับประกันความเสถียรของแพลตฟอร์มสำหรับระบบนิเวศ เราขอแนะนำให้ใช้ android-latest-release แทน aosp-main ในการสร้างและมีส่วนร่วมใน AOSP android-latest-release สาขาไฟล์ Manifest จะอ้างอิงถึงรุ่นล่าสุดที่พุชไปยัง AOSP เสมอ ดูข้อมูลเพิ่มเติมได้ที่การเปลี่ยนแปลงใน AOSP
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
DeviceJUnit4ClassRunner
public
class
DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
| java.lang.Object
|
| ↳ |
org.junit.runner.Runner
|
| |
↳ |
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
|
| |
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner
|
| |
|
|
↳ |
com.android.tradefed.testtype.DeviceJUnit4ClassRunner
|
JUnit4 test runner ที่รองรับ IDeviceTest ด้วย ควรระบุไว้เหนือ JUnit4
ทดสอบด้วยหมายเหตุ RunWith
สรุป
ตัวสร้างแบบสาธารณะ
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
| การโยน |
InitializationError |
|
เมธอดสาธารณะ
getAbi
public IAbi getAbi ()
โฮมรัน
public void run (RunNotifier notifier)
| พารามิเตอร์ |
notifier |
RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
| พารามิเตอร์ |
testInformation |
TestInformation |
วิธีการที่มีการป้องกัน
createTest
protected Object createTest ()
เราลบล้าง createTest เพื่อตั้งค่าอุปกรณ์
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
| พารามิเตอร์ |
method |
FrameworkMethod |
notifier |
RunNotifier |
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"],[],[]]