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