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 and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2020-09-08 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"必要な情報がない"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"複雑すぎる / 手順が多すぎる"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"最新ではない"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻訳に関する問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"サンプル / コードに問題がある"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"その他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"わかりやすい"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"問題の解決に役立った"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"その他"
}]