FakeTest

public class FakeTest
extends Object implements IDeviceTest, IRemoteTest

java.lang.Object
   ↳ com.android.tradefed.testtype.FakeTest


A fake test whose purpose is to make it easy to generate repeatable test results.

Summary

Fields

static final Map<String, String> EMPTY_MAP

Public constructors

FakeTest()

Public methods

ITestDevice getDevice()

Get the device under test.

void run(ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setDevice(ITestDevice device)

Inject the device under test.

Fields

EMPTY_MAP

Map<String, String> EMPTY_MAP

Public constructors

FakeTest

FakeTest ()

Public methods

getDevice

ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

run

void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setDevice

void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use