DeviceParameterizedRunner

public class DeviceParameterizedRunner
extends JUnitParamsRunner implements IAbiReceiver, ISetOptionReceiver, ITestInformationReceiver

java.lang.Object
org.junit.runner.Runner
  org.junit.runners.ParentRunner<org.junit.runners.model.FrameworkMethod>
    org.junit.runners.BlockJUnit4ClassRunner
      junitparams.JUnitParamsRunner
        com.android.tradefed.testtype.junit4.DeviceParameterizedRunner


ホストサイドで駆動されるパラメータ化されたテスト用の JUnit4 スタイルのパラメータ化されたランナー。

このランナーは JUnitParamsRunner に基づいており、JUnit4 ネイティブの Parameterized ではありません。ネイティブのパラメータ化されたランナーはあまり優れておらず、単一のメソッドを実行できません。

関連項目:

概要

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

DeviceParameterizedRunner(Class<?> klass)

パブリック メソッド

IAbi getAbi()
TestInformation getTestInformation()
void setAbi(IAbi abi)
void setTestInformation(TestInformation testInformation)

保護されたメソッド

ITestDevice getDevice()
List<String> getKeyValueOptions()
Statement methodInvoker(FrameworkMethod method, Object testObj)
Statement withAfterClasses(Statement statement)
Statement withBeforeClasses(Statement statement)

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

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

例外
org.junit.runners.model.InitializationError
InitializationError

パブリック メソッド

getAbi

public IAbi getAbi ()

戻り値
IAbi

getTestInformation

public TestInformation getTestInformation ()

戻り値
TestInformation

setAbi

public void setAbi (IAbi abi)

パラメータ
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

パラメータ
testInformation TestInformation

保護されたメソッド

getDevice

protected ITestDevice getDevice ()

戻り値
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

戻り値
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

パラメータ
method FrameworkMethod

testObj Object

戻り値
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

パラメータ
statement Statement

戻り値
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

パラメータ
statement Statement

戻り値
Statement