จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
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 ที่รองรับ 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 เพื่อตั้งค่าอุปกรณ์
เรียกใช้เด็ก
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
พารามิเตอร์ |
method |
FrameworkMethod |
notifier |
RunNotifier |
กับหลังชั้นเรียน
protected Statement withAfterClasses (Statement statement)
พารามิเตอร์ |
statement |
Statement |
พร้อมก่อนชั้นเรียน
protected Statement withBeforeClasses (Statement statement)
พารามิเตอร์ |
statement |
Statement |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-08-29 UTC
[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-08-29 UTC"],[],[]]