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 אבל הרץ המקורי עם הפרמטרים לא ממש טוב ולא מאפשר להריץ שיטה אחת.

מידע נוסף:

סיכום

‫constructors ציבוריים

DeviceParameterizedRunner(Class<?> klass)

‫methods ציבוריים

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)

‫constructors ציבוריים

DeviceParameterizedRunner

public DeviceParameterizedRunner (Class<?> klass)

הקפצת הודעות שגיאה (throw)
org.junit.runners.model.InitializationError
InitializationError

‫methods ציבוריים

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