DeviceCleaner
public class DeviceCleaner
extends BaseTargetPreparer
Melakukan reboot atau format sebagai tindakan pembersihan setelah pengujian, dan secara opsional mematikan layar
Ringkasan
Kelas bertingkat |
---|
enum | DeviceCleaner.CleanupAction |
enum | DeviceCleaner.PostCleanupAction |
Metode publik |
---|
void | setUp (TestInformation testInfo) |
void | tearDown (TestInformation testInfo, Throwable e) |
Metode yang dilindungi |
---|
void | clean (ITestDevice device) Jalankan tindakan pembersihan diikuti dengan tindakan pembersihan pos |
Konstruktor publik
DeviceCleaner
public DeviceCleaner ()
Metode publik
public void setUp (TestInformation testInfo)
Parameter |
---|
testInfo | TestInformation |
Melempar |
---|
BuildError | |
DeviceNotAvailableException | |
TargetSetupError | |
public void tearDown (TestInformation testInfo,
Throwable e)
Parameter |
---|
testInfo | TestInformation |
e | Throwable |
Melempar |
---|
DeviceNotAvailableException | |
Metode yang dilindungi
bersih
protected void clean (ITestDevice device)
Jalankan tindakan pembersihan diikuti dengan tindakan pembersihan pos
Parameter |
---|
device | ITestDevice |
Melempar |
---|
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.