スタブテスト
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 ()
公開メソッド
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 |