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: TheTestInformationobject containing useful information to run
     tests. | 
| listener | ITestInvocationListener: theITestInvocationListenerof 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 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 nullif test is
     not currently shardable | 
toString
public String toString ()
| Returns | |
|---|---|
| String | |
