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 Test עם הערת RunWith.
סיכום
כיתות מקוננות |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation הערה מזויפת שנועדה לשאת יומנים לכתבים. |
class | DeviceJUnit4ClassRunner.MetricAnnotation הערה מזויפת נועדה להעביר מדדים לכתבים. |
class | DeviceJUnit4ClassRunner.TestLogData יישום של ExternalResource ו- TestRule . |
class | DeviceJUnit4ClassRunner.TestMetrics יישום של ExternalResource ו- TestRule . |
בנאים ציבוריים
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
שיטות ציבוריות
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 |
עם אפטר קלאס
protected Statement withAfterClasses (Statement statement)
פרמטרים |
---|
statement | Statement |
עם Before Classes
protected Statement withBeforeClasses (Statement statement)
פרמטרים |
---|
statement | Statement |
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2023-04-28 (שעון 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":"סיבה אחרת"
}]