2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
DeviceJUnit4ClassRunner
public
class
DeviceJUnit4ClassRunner
extends BlockJUnit4ClassRunner
implements
IAbiReceiver,
ISetOptionReceiver,
ITestInformationReceiver
java.lang.Object
|
↳ |
org.junit.runner.Runner
|
|
↳ |
org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
|
|
|
↳ |
org.junit.runners.BlockJUnit4ClassRunner
|
|
|
|
↳ |
com.android.tradefed.testtype.DeviceJUnit4ClassRunner
|
IDeviceTest
にも対応する JUnit4 テストランナー。JUnit4 テストの上に RunWith アノテーションで指定する必要があります。
概要
パブリック コンストラクタ
DeviceJUnit4ClassRunner
public DeviceJUnit4ClassRunner (Class<?> klass)
パブリック メソッド
getAbi
public IAbi getAbi ()
ホームラン
public void run (RunNotifier notifier)
パラメータ |
notifier |
RunNotifier |
setAbi
public void setAbi (IAbi abi)
public void setTestInformation (TestInformation testInformation)
パラメータ |
testInformation |
TestInformation |
保護されたメソッド
createTest
protected Object createTest ()
デバイスを設定するために createTest をオーバーライドします。
runChild
protected void runChild (FrameworkMethod method,
RunNotifier notifier)
パラメータ |
method |
FrameworkMethod |
notifier |
RunNotifier |
withAfterClasses
protected Statement withAfterClasses (Statement statement)
パラメータ |
statement |
Statement |
withBeforeClasses
protected Statement withBeforeClasses (Statement statement)
パラメータ |
statement |
Statement |
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-26 UTC。"],[],[]]