StubTest
public
class
StubTest
extends Object
implements
IAbiReceiver,
IConfigurationReceiver,
IShardableTest
java.lang.Object | |
↳ | com.android.tradefed.testtype.StubTest |
NOP の空のテスト実装。
概要
フィールド | |
---|---|
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
パブリック コンストラクタ
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 になる可能性があります。
戻り値 | |
---|---|
|
個別に実行されるサブテストのコレクション。テストが現在シャーディング可能でない場合は null |
toString
public String toString ()
戻り値 | |
---|---|
String |