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 |
Trình chạy thử nghiệm JUnit4 cũng chứa IDeviceTest
. Nên được chỉ định ở trên Kiểm tra JUnit4 với chú thích RunWith.
Bản tóm tắt
Các lớp lồng nhau |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation Chú thích giả có nghĩa là mang nhật ký cho các phóng viên. |
class | DeviceJUnit4ClassRunner.MetricAnnotation Chú thích giả có nghĩa là mang các chỉ số cho các phóng viên. |
class | DeviceJUnit4ClassRunner.TestLogData Triển khai Nguồn lực ExternalResource và TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics Triển khai Nguồn lực ExternalResource và TestRule . |
Các phương pháp được bảo vệ |
---|
Object | createTest () Chúng tôi ghi đè createTest để thiết lập thiết bị. |
void | runChild (FrameworkMethod method, RunNotifier notifier) |
Statement | withAfterClasses (Statement statement) |
Statement | withBeforeClasses (Statement statement) |
Các nhà xây dựng công cộng
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
Phương pháp công khai
getAbi
public IAbi getAbi ()
chạy
public void run (RunNotifier notifier)
Thông số |
---|
notifier | RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
Thông số |
---|
testInformation | TestInformation |
Các phương pháp được bảo vệ
createTest
protected Object createTest ()
Chúng tôi ghi đè createTest để thiết lập thiết bị.
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
Thông số |
---|
method | FrameworkMethod |
notifier | RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
Thông số |
---|
statement | Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
Thông số |
---|
statement | Statement |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-08-15 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Thiếu thông tin tôi cần"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Quá phức tạp/quá nhiều bước"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Đã lỗi thời"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Vấn đề về bản dịch"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Vấn đề về mẫu/mã"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Khác"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Dễ hiểu"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Giúp tôi giải quyết được vấn đề"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Khác"
}]