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)
注入使用的 |
|
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 |
拆分
publicsplit ()
將測試分成可獨立執行的區塊。
這項作業必須是確定性作業,且針對相同輸入內容一律會傳回相同的 IRemoteTest 清單。
這會在執行測試前呼叫,因此插入的依附元件 (例如 IDeviceTest 的 ITestDevice) 可能為空值。
| 傳回 | |
|---|---|
|
要個別執行的子測試集合,或測試目前無法分片時的 null |
toString
public String toString ()
| 傳回 | |
|---|---|
String |
|