StubTest
public
class
StubTest
extends Object
implements
IAbiReceiver,
IConfigurationReceiver,
IShardableTest
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.StubTest |
無運算空測試實作。
摘要
常數 | |
|---|---|
String |
DNAE_MESSAGE
|
公用建構函式 | |
|---|---|
StubTest()
|
|
公用方法 | |
|---|---|
IAbi
|
getAbi()
|
IConfiguration
|
getConfiguration()
|
boolean
|
getRunTest()
|
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
Runs the tests, and reports result to the listener. |
void
|
setAbi(IAbi abi)
|
void
|
setConfiguration(IConfiguration configuration)
注入使用的 |
Collection<IRemoteTest>
|
split()
將測試分成可個別執行的區塊。 |
String
|
toString()
|
常數
DNAE_MESSAGE
public static final String DNAE_MESSAGE
常數值: "StubTest DeviceNotAvailableException"
公用建構函式
StubTest
public StubTest ()
公用方法
getRunTest
public boolean getRunTest ()
| 傳回 | |
|---|---|
boolean |
|
得分
public void run (TestInformation testInfo, ITestInvocationListener listener)
執行測試,並向接聽程式回報結果。
| 參數 | |
|---|---|
testInfo |
TestInformation:包含執行測試實用資訊的 TestInformation 物件。 |
listener |
ITestInvocationListener:測試結果的 ITestInvocationListener |
| 擲回 | |
|---|---|
DeviceNotAvailableException |
|
setConfiguration
public void setConfiguration (IConfiguration configuration)
注入使用的 IConfiguration。
| 參數 | |
|---|---|
configuration |
IConfiguration |
拆分
public Collection<IRemoteTest> split ()
將測試分成可個別執行的區塊。
這必須是決定性函式,且針對相同輸入內容一律會傳回相同的 IRemoteTest 清單。
這個方法會在測試執行前呼叫,因此插入的依附元件 (例如 IDeviceTest 的 ITestDevice) 可能為空值。
| 傳回 | |
|---|---|
Collection<IRemoteTest> |
要個別執行的子測試集合,或 null 如果測試目前無法分片 |
toString
public String toString ()
| 傳回 | |
|---|---|
String |
|