อุปกรณ์JUnit4ClassRunner
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
สรุป
คลาสที่ซ้อนกัน |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation คำอธิบายประกอบปลอมหมายถึงการนำบันทึกไปให้นักข่าว |
class | DeviceJUnit4ClassRunner.MetricAnnotation หมายเหตุปลอมหมายถึงการนำตัวชี้วัดไปยังนักข่าว |
class | DeviceJUnit4ClassRunner.TestLogData การใช้งาน ExternalResource และ TestRule |
class | DeviceJUnit4ClassRunner.TestMetrics การใช้งาน ExternalResource และ TestRule |
ผู้สร้างสาธารณะ
อุปกรณ์JUnit4ClassRunner
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 |
กับ AfterClasses
protected Statement withAfterClasses (Statement statement)
พารามิเตอร์ |
---|
statement | Statement |
กับก่อนเรียน
protected Statement withBeforeClasses (Statement statement)
พารามิเตอร์ |
---|
statement | Statement |
ตัวอย่างเนื้อหาและโค้ดในหน้าเว็บนี้ขึ้นอยู่กับใบอนุญาตที่อธิบายไว้ในใบอนุญาตการใช้เนื้อหา Java และ OpenJDK เป็นเครื่องหมายการค้าหรือเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2022-08-15 UTC
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"ไม่มีข้อมูลที่ฉันต้องการ"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"ล้าสมัย"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ปัญหาเกี่ยวกับการแปล"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"อื่นๆ"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"เข้าใจง่าย"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"แก้ปัญหาของฉันได้"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"อื่นๆ"
}]