دستگاه پارامتریزه شده دونده

public class DeviceParameterizedRunner
extends JUnitParamsRunner implements IAbiReceiver , ISetOptionReceiver , ITestInformationReceiver .

شیء جاوا
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 برای تست‌های پارامتری سمت میزبان.

این runner بر اساس JUnitParamsRunner است و نه JUnit4 native Parameterized ، اما runner native 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)

سازندگان عمومی

دستگاه پارامتریزه شده دونده

public DeviceParameterizedRunner (Class<?> klass)

پرتاب‌ها
خطای مقداردهی اولیه مدل org.junit.runners
InitializationError

روش‌های عمومی

دریافت ابی

public IAbi getAbi ()

بازگشت‌ها
IAbi

اطلاعات آزمون را دریافت کنید

public TestInformation getTestInformation ()

بازگشت‌ها
TestInformation

ست ابی

public void setAbi (IAbi abi)

پارامترها
abi IAbi

اطلاعات آزمون تنظیم‌شده

public void setTestInformation (TestInformation testInformation)

پارامترها
testInformation TestInformation

روش‌های محافظت‌شده

دریافت دستگاه

protected ITestDevice getDevice ()

بازگشت‌ها
ITestDevice

گزینه‌های کلید-مقدار

protected List<String> getKeyValueOptions ()

بازگشت‌ها
List<String>

فراخوانی‌کننده متد

protected Statement methodInvoker (FrameworkMethod method, 
                Object testObj)

پارامترها
method FrameworkMethod

testObj Object

بازگشت‌ها
Statement

با کلاس‌های بعد از کلاس

protected Statement withAfterClasses (Statement statement)

پارامترها
statement Statement

بازگشت‌ها
Statement

باقبلکلاس‌ها

protected Statement withBeforeClasses (Statement statement)

پارامترها
statement Statement

بازگشت‌ها
Statement