to top
public class

InvocationFailureEmailResultReporter

extends EmailResultReporter
java.lang.Object
   ↳ com.android.tradefed.result.CollectingTestListener
     ↳ com.android.tradefed.result.EmailResultReporter
       ↳ com.android.tradefed.result.InvocationFailureEmailResultReporter

Class Overview

An EmailResultReporter that can also restrict notifications to just invocation failures.

Summary

Public Constructors
InvocationFailureEmailResultReporter()
Default constructor
Protected Constructors
InvocationFailureEmailResultReporter(IEmail mailer)
Create a InvocationFailureEmailResultReporter with a custom IEmail instance to use.
Protected Methods
boolean shouldSendMessage()
Send a message if there was an invocation failure.
[Expand]
Inherited Methods
From class com.android.tradefed.result.EmailResultReporter
From class com.android.tradefed.result.CollectingTestListener
From class java.lang.Object
From interface com.android.tradefed.result.ITestSummaryListener
From interface com.android.tradefed.result.ITestInvocationListener
From interface com.android.ddmlib.testrunner.ITestRunListener

Public Constructors

public InvocationFailureEmailResultReporter ()

Default constructor

Protected Constructors

protected InvocationFailureEmailResultReporter (IEmail mailer)

Create a InvocationFailureEmailResultReporter with a custom IEmail instance to use.

Exposed for unit testing.

Parameters
mailer the IEmail instance to use.

Protected Methods

protected boolean shouldSendMessage ()

Send a message if there was an invocation failure.

Returns
  • true if the InvocationStatus is not SUCCESS, or false if it is.