存根测试
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 ()
公开方法
getAbi
public IAbi getAbi ()
退货 | |
---|---|
IAbi |
getRunTest
public boolean getRunTest ()
退货 | |
---|---|
boolean |
跑
public void run (TestInformation testInfo, ITestInvocationListener listener)
参量 | |
---|---|
testInfo | TestInformation |
listener | ITestInvocationListener |
投掷 | |
---|---|
DeviceNotAvailableException |
setAbi
public void setAbi (IAbi abi)
参量 | |
---|---|
abi | IAbi |
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入正在使用的IConfiguration
。
参量 | |
---|---|
configuration | IConfiguration |
分裂
publicsplit ()
将测试分成可单独运行的块。
这必须是确定性的,并且对于相同的输入始终返回相同的IRemoteTest
列表。
这将在测试执行之前被调用,因此注入的依赖项(例如ITestDevice
for IDeviceTest
)可能为null。
退货 | |
---|---|
要单独执行的子测试的集合;如果测试当前不可分割,则返回null |
toString
public String toString ()
退货 | |
---|---|
String |