フェイクテスト

public class FakeTest
extends Object implements IDeviceTest , IRemoteTest

java.lang.オブジェクト
com.android.tradefed.testtype.FakeTest


再現可能なテスト結果を簡単に生成できるようにすることを目的とした偽のテスト。

まとめ

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

FakeTest ()

パブリックメソッド

ITestDevice getDevice ()

テスト対象のデバイスを取得します。

void run ( TestInformation testInfo, ITestInvocationListener listener)

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

void setDevice ( ITestDevice device)

テスト対象のデバイスを注入します。

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

フェイクテスト

public FakeTest ()

パブリックメソッド

デバイスの取得

public ITestDevice getDevice ()

テスト対象のデバイスを取得します。

戻り値
ITestDevice ITestDevice

走る

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

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

パラメーター
testInfo TestInformation : テストを実行するために役立つ情報を含むTestInformationオブジェクト。

listener ITestInvocationListener : テスト結果のITestInvocationListener

投げる
DeviceNotAvailableException

セットデバイス

public void setDevice (ITestDevice device)

テスト対象のデバイスを注入します。

パラメーター
device ITestDevice : 使用するITestDevice