to top
public class

HostTest

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

Class Overview

A test runner for JUnit host based tests

Summary

Public Constructors
HostTest()
Public Methods
int countTestCases()
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 HostTest ()

Public Methods

public int countTestCases ()

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