החל משנת 2026, כדי להתאים למודל הפיתוח היציב שלנו ולשמור על יציבות הפלטפורמה בסביבה העסקית, נפרסם קוד מקור ב-AOSP ברבעון השני וברבעון הרביעי. כדי ליצור ולתרום ל-AOSP, צריך להשתמש ב-android-latest-release. הענף android-latest-release manifest תמיד יפנה לגרסה האחרונה שנדחפה ל-AOSP. מידע נוסף זמין במאמר שינויים ב-AOSP.
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
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.
סיכום
constructors ציבוריים
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
| הקפצת הודעות שגיאה (throw) |
InitializationError |
|
methods ציבוריים
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 כדי להגדיר את המכשיר.
| הקפצת הודעות שגיאה (throw) |
Exception |
|
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 |
| חזרה לרצף השגרה |
Statement |
|
דוגמאות התוכן והקוד שבדף הזה כפופות לרישיונות המפורטים בקטע רישיון לתוכן. Java ו-OpenJDK הם סימנים מסחריים או סימנים מסחריים רשומים של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2026-06-22 (שעון 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"]],["עדכון אחרון: 2026-06-22 (שעון UTC)."],[],[]]