StubTest

public class StubTest
extends Object implements IAbiReceiver, IConfigurationReceiver, IShardableTest

java.lang.Object
   ↳ com.android.tradefed.testtype.StubTest


No-op empty test implementation.

Summary

Fields

public static final String DNAE_MESSAGE

Public constructors

StubTest()

Public methods

IAbi getAbi()
IConfiguration getConfiguration()
boolean getRunTest()
void run(TestInformation testInfo, ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

void setAbi(IAbi abi)
void setConfiguration(IConfiguration configuration)

Injects the IConfiguration in use.

split()

Shard the test into separately runnable chunks.

String toString()

Fields

DNAE_MESSAGE

public static final String DNAE_MESSAGE

Public constructors

StubTest

public StubTest ()

Public methods

getAbi

public IAbi getAbi ()

Returns
IAbi

getConfiguration

public IConfiguration getConfiguration ()

Returns
IConfiguration

getRunTest

public boolean getRunTest ()

Returns
boolean

run

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
testInfo TestInformation: The TestInformation object containing useful information to run tests.

listener ITestInvocationListener: the ITestInvocationListener of test results

Throws
DeviceNotAvailableException

setAbi

public void setAbi (IAbi abi)

Parameters
abi IAbi

setConfiguration

public void setConfiguration (IConfiguration configuration)

Injects the IConfiguration in use.

Parameters
configuration IConfiguration

split

public  split ()

Shard the test into separately runnable chunks.

This must be deterministic and always return the same list of IRemoteTests for the same input.

This will be called before test execution, so injected dependencies (such as the ITestDevice for IDeviceTests) may be null.

Returns
a collection of subtests to be executed separately or null if test is not currently shardable

toString

public String toString ()

Returns
String