DeviceCleaner
public class DeviceCleaner
extends BaseTargetPreparer
测试后执行重新启动或格式化为清理操作,并有选择地关闭屏幕
概要
嵌套类 |
---|
enum | DeviceCleaner.CleanupAction |
enum | DeviceCleaner.PostCleanupAction |
公开方法 |
---|
void | setUp (TestInformation testInfo) |
void | tearDown (TestInformation testInfo, Throwable e) |
受保护的方法 |
---|
void | clean (ITestDevice device) 执行清理操作,然后执行后期清理操作 |
公共建设者
DeviceCleaner
public DeviceCleaner ()
公开方法
public void setUp (TestInformation testInfo)
参量 |
---|
testInfo | TestInformation |
投掷 |
---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError | |
public void tearDown (TestInformation testInfo,
Throwable e)
参量 |
---|
testInfo | TestInformation |
e | Throwable |
投掷 |
---|
DeviceNotAvailableException | |
受保护的方法
清洁
protected void clean (ITestDevice device)
执行清除操作,然后执行后期清除操作
投掷 |
---|
DeviceNotAvailableException | |
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.