InvocationToJUnitResultForwarder
  public
  
  
  
  class
  InvocationToJUnitResultForwarder
  
    extends Object
  
  
  
  
  
      implements
      
        ITestInvocationListener
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.result.InvocationToJUnitResultForwarder | 
Uma classe que detecta eventos ITestInvocationListener e os encaminha para um
 TestListener.
 
Resumo
| Construtores públicos | |
|---|---|
| 
      InvocationToJUnitResultForwarder(TestListener junitListener)
       | |
| Métodos públicos | |
|---|---|
| 
        
        
        
        
        
        TestSummary | 
      getSummary()
      
 | 
| 
        
        
        
        
        
        void | 
      invocationEnded(long elapsedTime)
      
 | 
| 
        
        
        
        
        
        void | 
      invocationFailed(Throwable cause)
      
 | 
| 
        
        
        
        
        
        void | 
      invocationStarted(IInvocationContext context)
      
 | 
| 
        
        
        
        
        
        void | 
      testAssumptionFailure(TestDescription testId, String trace)
       | 
| 
        
        
        
        
        
        void | 
      testEnded(TestDescription test, 
 | 
| 
        
        
        
        
        
        void | 
      testFailed(TestDescription testId, String trace)
      
 | 
| 
        
        
        
        
        
        void | 
      testIgnored(TestDescription test)
       | 
| 
        
        
        
        
        
        void | 
      testLog(String dataName, LogDataType logData, InputStreamSource dataStream)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunEnded(long elapsedTime, 
 | 
| 
        
        
        
        
        
        void | 
      testRunFailed(String errorMessage)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStarted(String runName, int testCount)
      
 | 
| 
        
        
        
        
        
        void | 
      testRunStopped(long elapsedTime)
      
 | 
| 
        
        
        
        
        
        void | 
      testStarted(TestDescription test)
      
 | 
| Métodos protegidos | |
|---|---|
| 
        
        
        
        
        
        TestListener | 
      getJUnitListener()
       | 
Construtores públicos
InvocationToJUnitResultForwarder
public InvocationToJUnitResultForwarder (TestListener junitListener)
| Parâmetros | |
|---|---|
| junitListener | TestListener | 
Métodos públicos
getSummary
public TestSummary getSummary ()
| Retorna | |
|---|---|
| TestSummary | |
invocationEnded
public void invocationEnded (long elapsedTime)
| Parâmetros | |
|---|---|
| elapsedTime | long | 
invocationFailed
public void invocationFailed (Throwable cause)
| Parâmetros | |
|---|---|
| cause | Throwable | 
invocationStarted
public void invocationStarted (IInvocationContext context)
| Parâmetros | |
|---|---|
| context | IInvocationContext | 
testAssumptionFailure
public void testAssumptionFailure (TestDescription testId, 
                String trace)| Parâmetros | |
|---|---|
| testId | TestDescription | 
| trace | String | 
testEnded
public void testEnded (TestDescription test, 
                 testMetrics) 
| Parâmetros | |
|---|---|
| test | TestDescription | 
| testMetrics |  | 
testFailed
public void testFailed (TestDescription testId, 
                String trace)
| Parâmetros | |
|---|---|
| testId | TestDescription | 
| trace | String | 
testIgnored
public void testIgnored (TestDescription test)
| Parâmetros | |
|---|---|
| test | TestDescription | 
testLog
public void testLog (String dataName, 
                LogDataType logData, 
                InputStreamSource dataStream)
| Parâmetros | |
|---|---|
| dataName | String | 
| logData | LogDataType | 
| dataStream | InputStreamSource | 
testRunEnded
public void testRunEnded (long elapsedTime, 
                 runMetrics) 
| Parâmetros | |
|---|---|
| elapsedTime | long | 
| runMetrics |  | 
testRunFailed
public void testRunFailed (String errorMessage)
| Parâmetros | |
|---|---|
| errorMessage | String | 
testRunStarted
public void testRunStarted (String runName, 
                int testCount)
| Parâmetros | |
|---|---|
| runName | String | 
| testCount | int | 
testRunStopped
public void testRunStopped (long elapsedTime)
| Parâmetros | |
|---|---|
| elapsedTime | long | 
testStarted
public void testStarted (TestDescription test)
| Parâmetros | |
|---|---|
| test | TestDescription | 
Métodos protegidos
getJUnitListener
protected TestListener getJUnitListener ()
| Retorna | |
|---|---|
| TestListener | |
