存根测试
public class StubTest
extends Object
implements IShardableTest , IConfigurationReceiver , IAbiReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.StubTest |
无操作空测试实现。
概括
字段 | |
---|---|
public static final String | DNAE_MESSAGE
|
公共构造函数 | |
---|---|
StubTest () |
公共方法 | |
---|---|
IAbi | getAbi () |
IConfiguration | getConfiguration () |
boolean | getRunTest () |
void | run (TestInformation testInfo, ITestInvocationListener listener) |
void | setAbi (IAbi abi) |
void | setConfiguration ( IConfiguration configuration) 注入正在使用的 |
split () 将测试分成可单独运行的块。 | |
String | toString () |
字段
DNAE_MESSAGE
public static final String DNAE_MESSAGE
公共构造函数
存根测试
public StubTest ()
公共方法
得到阿比
public IAbi getAbi ()
退货 | |
---|---|
IAbi |
获取运行测试
public boolean getRunTest ()
退货 | |
---|---|
boolean |
跑
public void run (TestInformation testInfo, ITestInvocationListener listener)
参数 | |
---|---|
testInfo | TestInformation |
listener | ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
设置阿比
public void setAbi (IAbi abi)
参数 | |
---|---|
abi | IAbi |
设置配置
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参数 | |
---|---|
configuration | IConfiguration |
分裂
publicsplit ()
将测试分成可单独运行的块。
这必须是确定性的,并且始终为相同的输入返回相同的IRemoteTest
列表。
这将在测试执行之前调用,因此注入的依赖项(例如ITestDevice
的IDeviceTest
)可能为空。
退货 | |
---|---|
要单独执行的子测试集合,如果测试当前不可分片,则为null |
到字符串
public String toString ()
退货 | |
---|---|
String |