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 完成後關閉的 AutoCloseable

公共方法

檢查命令結果

public void checkCmdResult (CommandResult result)

在 PoC 完成後調用

參數
result CommandResult

可自動關閉

public AutoCloseable withAutoCloseable (NativePoc nativePoc, 
                ITestDevice device)

在 PoC 運行之前調用,返回一個在 PoC 完成後關閉的 AutoCloseable

參數
nativePoc NativePoc

device ITestDevice

退貨
AutoCloseable

投擲
Exception