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 ที่ปิดหลังจาก PoC เสร็จสิ้น |
วิธีการสาธารณะ
ตรวจสอบผลลัพธ์ Cmd
public void checkCmdResult (CommandResult result)
ถูกเรียกหลังจาก PoC เสร็จสิ้น
พารามิเตอร์ | |
---|---|
result | CommandResult |
ด้วยการปิดอัตโนมัติ
public AutoCloseable withAutoCloseable (NativePoc nativePoc, ITestDevice device)
ถูกเรียกก่อนที่ PoC จะทำงาน จะส่งคืน AutoCloseable ที่ปิดหลังจาก PoC เสร็จสิ้น
พารามิเตอร์ | |
---|---|
nativePoc | NativePoc |
device | ITestDevice |
การส่งคืน | |
---|---|
AutoCloseable |
ขว้าง | |
---|---|
Exception |