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 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 会在 PoC 完成后关闭 |
公共方法
checkCmdResult
public void checkCmdResult (CommandResult result)
在 PoC 完成后调用
| 参数 | |
|---|---|
result |
CommandResult |
withAutoCloseable
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
在 PoC 运行之前调用,返回一个 AutoCloseable,该 AutoCloseable 会在 PoC 完成后关闭
| 参数 | |
|---|---|
nativePoc |
NativePoc |
device |
ITestDevice |
| 返回 | |
|---|---|
AutoCloseable |
|
| 抛出 | |
|---|---|
Exception |
|