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 (Class<?> klass)

公開メソッド

IAbi getAbi ()
TestInformation getTestInformation ()
void run (RunNotifier notifier)
void setAbi ( IAbi abi)
void setTestInformation ( TestInformation testInformation)

保護されたメソッド

Object createTest ()

デバイスを設定するために createTest をオーバーライドします。

void runChild (FrameworkMethod method, RunNotifier notifier)
Statement withAfterClasses (Statement statement)
Statement withBeforeClasses (Statement statement)

パブリック コンストラクター

DeviceJUnit4ClassRunner

public DeviceJUnit4ClassRunner (Class<?> klass)

パラメーター
klass Class

スロー
InitializationError

公開メソッド

getAbi

public IAbi getAbi ()

戻り値
IAbi

getTestInformation

public TestInformation getTestInformation ()

戻り値
TestInformation

走る

public void run (RunNotifier notifier)

パラメーター
notifier RunNotifier

setAbi

public void setAbi (IAbi abi)

パラメーター
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

パラメーター
testInformation TestInformation

保護されたメソッド

createTest

protected Object createTest ()

デバイスを設定するために createTest をオーバーライドします。

戻り値
Object

runChild

protected void runChild (FrameworkMethod method, 
                RunNotifier notifier)

パラメーター
method FrameworkMethod

notifier RunNotifier

withAfterClasses

protected Statement withAfterClasses (Statement statement)

パラメーター
statement Statement

戻り値
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

パラメーター
statement Statement

戻り値
Statement