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


Parametryzowany moduł uruchamiający w stylu JUnit4 do testów parametryzowanych po stronie hosta.

Ten program uruchamiający jest oparty na JUnitParamsRunner, a nie na natywnym programie JUnit4 Parameterized, ale natywny program uruchamiający z parametrami nie jest zbyt dobry i nie pozwala na uruchomienie pojedynczej metody.

Zobacz też:

Podsumowanie

Konstruktory publiczne

DeviceParameterizedRunner(Class<?> klass)

Metody publiczne

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

Metody chronione

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

Konstruktory publiczne

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

Zgłasza
org.junit.runners.model.InitializationError
InitializationError

Metody publiczne

getAbi

public IAbi getAbi ()

Zwraca
IAbi

getTestInformation

public TestInformation getTestInformation ()

Zwraca
TestInformation

setAbi

public void setAbi (IAbi abi)

Parametry
abi IAbi

setTestInformation

public void setTestInformation (TestInformation testInformation)

Parametry
testInformation TestInformation

Metody chronione

getDevice

protected ITestDevice getDevice ()

Zwraca
ITestDevice

getKeyValueOptions

protected List<String> getKeyValueOptions ()

Zwraca
List<String>

methodInvoker

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

Parametry
method FrameworkMethod

testObj Object

Zwraca
Statement

withAfterClasses

protected Statement withAfterClasses (Statement statement)

Parametry
statement Statement

Zwraca
Statement

withBeforeClasses

protected Statement withBeforeClasses (Statement statement)

Parametry
statement Statement

Zwraca
Statement