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 テスト ランナー。 RunWith アノテーションを使用して JUnit4 Test の上で指定する必要があります。
まとめ
ネストされたクラス |
---|
class | DeviceJUnit4ClassRunner.LogAnnotation 報告者にログを伝えるための偽の注釈。 |
class | DeviceJUnit4ClassRunner.MetricAnnotation レポーターに指標を伝えるための偽の注釈。 |
class | DeviceJUnit4ClassRunner.TestLogData ExternalResource およびTestRule の実装。 |
class | DeviceJUnit4ClassRunner.TestMetrics ExternalResource およびTestRule の実装。 |
パブリック コンストラクター
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 および関連会社の商標または登録商標です。
最終更新日 2023-04-28 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":"その他"
}]