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 |
|
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
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 |
setConfiguration
public void setConfiguration (IConfiguration configuration)
Injects the IConfiguration
in use.
Parameters | |
---|---|
configuration |
IConfiguration |
split
publicsplit ()
Shard the test into separately runnable chunks.
This must be deterministic and always return the same list of IRemoteTest
s for the
same input.
This will be called before test execution, so injected dependencies (such as the ITestDevice
for IDeviceTest
s) 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 |