FilteredResultForwarder
  public
  
  
  
  class
  FilteredResultForwarder
  
  
  
  
    extends ResultForwarder
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | com.android.tradefed.result.ResultForwarder | |
| ↳ | com.android.tradefed.result.FilteredResultForwarder | |
Variant of ResultForwarder that only allows an allowlist of TestDescription to be
 reported.
Summary
| Public constructors | |
|---|---|
| 
      FilteredResultForwarder( | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      testAssumptionFailure(TestDescription test, FailureDescription failure)
      Called when an atomic test flags that it assumes a condition that is false | 
| 
        
        
        
        
        
        void | 
      testAssumptionFailure(TestDescription test, String trace)
      Called when an atomic test flags that it assumes a condition that is false | 
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, Reports the execution end of an individual test case. | 
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, long endTime, Alternative to  | 
| 
        
        
        
        
        
        void | 
      testFailed(TestDescription test, FailureDescription failure)
      Reports the failure of a individual test case. | 
| 
        
        
        
        
        
        void | 
      testFailed(TestDescription test, String trace)
      Reports the failure of a individual test case. | 
| 
        
        
        
        
        
        void | 
      testIgnored(TestDescription test)
      Called when a test will not be run, generally because a test method is annotated with org.junit.Ignore. | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test, long startTime)
      Alternative to  | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test)
      Reports the start of an individual test case. | 
Public constructors
FilteredResultForwarder
public FilteredResultForwarder (allowedTests, ITestInvocationListener... listeners) 
| Parameters | |
|---|---|
| allowedTests |  | 
| listeners | ITestInvocationListener | 
Public methods
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, FailureDescription failure)
Called when an atomic test flags that it assumes a condition that is false
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| failure | FailureDescription:FailureDescriptiondescribing the failure and its context. | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription test, String trace)
Called when an atomic test flags that it assumes a condition that is false
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| trace | String: stack trace of failure | 
testEnded
public void testEnded (TestDescription test,testMetrics) 
Reports the execution end of an individual test case.
If testFailed(TestDescription, FailureDescription) was not invoked, this test passed. Also returns any key/value
 metrics which may have been emitted during the test case's execution.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| testMetrics | : aERROR(/Map)of the metrics emitted | 
testEnded
public void testEnded (TestDescription test, long endTime,testMetrics) 
Alternative to ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) where we can specify the end time
 directly. Combine with testStarted(com.android.tradefed.result.TestDescription, long) for accurate measure.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| endTime | long: the time the test ended, measured viaSystem.currentTimeMillis() | 
| testMetrics | : aERROR(/Map)of the metrics emitted | 
testFailed
public void testFailed (TestDescription test, FailureDescription failure)
Reports the failure of a individual test case.
Will be called between testStarted and testEnded.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| failure | FailureDescription:FailureDescriptiondescribing the failure and its context. | 
testFailed
public void testFailed (TestDescription test, String trace)
Reports the failure of a individual test case.
Will be called between testStarted and testEnded.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| trace | String: stack trace of failure | 
testIgnored
public void testIgnored (TestDescription test)
Called when a test will not be run, generally because a test method is annotated with org.junit.Ignore.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
testStarted
public void testStarted (TestDescription test, long startTime)
Alternative to testStarted(com.android.tradefed.result.TestDescription) where we also specify when the test was
 started, combined with ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) for accurate measure.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
| startTime | long: the time the test started, measured viaSystem.currentTimeMillis() | 
testStarted
public void testStarted (TestDescription test)
Reports the start of an individual test case. Older interface, should use testStarted(com.android.tradefed.result.TestDescription) whenever possible.
| Parameters | |
|---|---|
| test | TestDescription: identifies the test | 
