NativePocAsserter
public interface NativePocAsserter
com.android.sts.common.NativePocAsserter |
ממשק עבור אסרטר לשימוש עם NativePoc.asserter()
.
סיכום
שיטות ציבוריות | |
---|---|
default void | checkCmdResult (CommandResult result) נקרא לאחר סיום ה-PoC |
default AutoCloseable | withAutoCloseable ( NativePoc nativePoc, ITestDevice device) נקרא לפני הפעלת PoC, מחזיר סגירה אוטומטית שנסגרת לאחר שה-PoC מסתיים |
שיטות ציבוריות
checkCmdResult
public void checkCmdResult (CommandResult result)
נקרא לאחר סיום ה-PoC
פרמטרים | |
---|---|
result | CommandResult |
עם סגירה אוטומטית
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
נקרא לפני הפעלת PoC, מחזיר סגירה אוטומטית שנסגרת לאחר שה-PoC מסתיים
פרמטרים | |
---|---|
nativePoc | NativePoc |
device | ITestDevice |
החזרות | |
---|---|
AutoCloseable |
זורק | |
---|---|
Exception |