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