DeviceSuite

public class DeviceSuite
extends Suite implements IDeviceTest, IBuildReceiver, IAbiReceiver, ISetOptionReceiver

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.

Protected methods

void runChild(Runner runner, RunNotifier notifier)

Public constructors

DeviceSuite

public DeviceSuite (Class<?> klass, 
                RunnerBuilder builder)

Parameters
klass Class

builder RunnerBuilder

Throws
InitializationError

Public methods

getAbi

public IAbi getAbi ()

Returns
IAbi

getDevice

public ITestDevice getDevice ()

Get the device under test.

Returns
ITestDevice the ITestDevice

setAbi

public void setAbi (IAbi abi)

Parameters
abi IAbi

setBuild

public void setBuild (IBuildInfo buildInfo)

Parameters
buildInfo IBuildInfo

setDevice

public void setDevice (ITestDevice device)

Inject the device under test.

Parameters
device ITestDevice: the ITestDevice to use

Protected methods

runChild

protected void runChild (Runner runner, 
                RunNotifier notifier)

Parameters
runner Runner

notifier RunNotifier