DeviceSuite

public class DeviceSuite
extends Suite implements IDeviceTest, IBuildReceiver, IAbiReceiver

java.lang.Object
   ↳ org.junit.runner.Runner
     ↳ org.junit.runners.ParentRunner<org.junit.runner.Runner>
       ↳ org.junit.runners.Suite
         ↳ com.android.tradefed.testtype.DeviceSuite


Extends the JUnit4 container Suite in order to provide a ITestDevice to the tests that requires it.

Summary

Public constructors

DeviceSuite(Class<?> klass, RunnerBuilder builder)

Public methods

IAbi getAbi()
ITestDevice getDevice()

Get the device under test.

void setAbi(IAbi abi)
void setBuild(IBuildInfo buildInfo)
void setDevice(ITestDevice device)

Inject the device under test.

Public constructors

DeviceSuite

DeviceSuite (Class<?> klass, 
                RunnerBuilder builder)

Parameters
klass Class

builder RunnerBuilder

Throws
InitializationError

Public methods

getAbi

IAbi getAbi ()

Returns
IAbi

getDevice

ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

setAbi

void setAbi (IAbi abi)

Parameters
abi IAbi

setBuild

void setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

setDevice

void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use