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