to top
public class

StubTest

extends Object
implements IShardableTest
java.lang.Object
   ↳ com.android.tradefed.testtype.StubTest

Class Overview

No-op empty test implementation.

Summary

Fields
private int mNumShards @Option(name = "num-shards", description = "Shard this test into given number of separately runnable chunks")
Public Constructors
StubTest()
Public Methods
void run(ITestInvocationListener listener)
Runs the tests, and reports result to the listener.
Collection<IRemoteTest> split()
Shard the test into separately runnable chunks.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.android.tradefed.testtype.IShardableTest
From interface com.android.tradefed.testtype.IRemoteTest

Fields

private int mNumShards

Public Constructors

public StubTest ()

Public Methods

public void run (ITestInvocationListener listener)

Runs the tests, and reports result to the listener.

Parameters
listener ITestInvocationListener: the ITestInvocationListener of test results
Throws
DeviceNotAvailableException

public Collection<IRemoteTest> split ()

Shard the test into separately runnable chunks.

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

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