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
Public constructors | |
|---|---|
FakeTest()
|
|
Public methods | |
|---|---|
ITestDevice
|
getDevice()
Get the device under test. |
void
|
run(TestInformation testInfo, ITestInvocationListener listener)
|
void
|
setDevice(ITestDevice device)
Inject the device under test. |
Public constructors
FakeTest
public FakeTest ()
Public methods
getDevice
public ITestDevice getDevice ()
Get the device under test.
| Returns | |
|---|---|
ITestDevice |
the ITestDevice
|
run
public void run (TestInformation testInfo,
ITestInvocationListener listener)
| Parameters | |
|---|---|
testInfo |
TestInformation |
listener |
ITestInvocationListener |
| Throws | |
|---|---|
DeviceNotAvailableException |
|
setDevice
public void setDevice (ITestDevice device)
Inject the device under test.
| Parameters | |
|---|---|
device |
ITestDevice: the ITestDevice to use
|