public class

FakeTest

extends Object
implements IDeviceTest IRemoteTest
java.lang.Object
   ↳ com.android.tradefed.testtype.FakeTest

Class Overview

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

Summary

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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.testtype.IDeviceTest
From interface com.android.tradefed.testtype.IRemoteTest

Public Constructors

public FakeTest ()

Public Methods

public ITestDevice getDevice ()

Get the device under test.

Returns

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener the ITestInvocationListener of test results

public void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device the ITestDevice to use