NativePoc斷言者
public interface NativePocAsserter
com.android.sts.common.NativePocAsserter |
斷言器與NativePoc.asserter()
一起使用的介面。
概括
公共方法 | |
---|---|
default void | checkCmdResult (CommandResult result) PoC 完成後調用 |
default AutoCloseable | withAutoCloseable ( NativePoc nativePoc, ITestDevice device) 在 PoC 運行之前調用,返回一個 AutoCloseable,該 AutoCloseable 在 PoC 完成後關閉 |
公共方法
檢查命令結果
public void checkCmdResult (CommandResult result)
PoC 完成後調用
參數 | |
---|---|
result | CommandResult |
具有自動關閉功能
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
在 PoC 運行之前調用,返回一個 AutoCloseable,該 AutoCloseable 在 PoC 完成後關閉
參數 | |
---|---|
nativePoc | NativePoc |
device | ITestDevice |
退貨 | |
---|---|
AutoCloseable |
投擲 | |
---|---|
Exception |