スタブテスト

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)

使用中のIConfigurationを挿入します。

split ()

テストを個別に実行可能なチャンクに分割します。

String toString ()

田畑

DNAE_MESSAGE

public static final String DNAE_MESSAGE

パブリック コンストラクター

スタブテスト

public StubTest ()

公開メソッド

getAbi

public IAbi getAbi ()

戻り値
IAbi

getConfiguration

public IConfiguration getConfiguration ()

戻り値
IConfiguration

getRunTest

public boolean getRunTest ()

戻り値
boolean

走る

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

テストを実行し、結果をリスナーに報告します。

パラメーター
testInfo TestInformation : テストを実行するための有用な情報を含むTestInformationオブジェクト。

listener ITestInvocationListener : テスト結果のITestInvocationListener

スロー
DeviceNotAvailableException

setAbi

public void setAbi (IAbi abi)

パラメーター
abi IAbi

setConfiguration

public void setConfiguration (IConfiguration configuration)

使用中のIConfigurationを挿入します。

パラメーター
configuration IConfiguration

スプリット

public  split ()

テストを個別に実行可能なチャンクに分割します。

これは決定論的である必要があり、同じ入力に対してIRemoteTestの同じリストを常に返す必要があります。

これはテストの実行前に呼び出されるため、注入された依存関係 ( IDeviceTestITestDeviceなど) は null である可能性があります。

戻り値
個別に実行されるサブテストのコレクション、またはテストが現在シャード可能でない場合はnull

toString

public String toString ()

戻り値
String