InvocationFailureEmailResultReporter

public class InvocationFailureEmailResultReporter
extends EmailResultReporter

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


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.

Public methods

void invocationInterrupted()

Protected methods

boolean shouldSendMessage()

Send a message if there was an invocation failure.

Public constructors

InvocationFailureEmailResultReporter

InvocationFailureEmailResultReporter ()

Default constructor

Protected constructors

InvocationFailureEmailResultReporter

InvocationFailureEmailResultReporter (IEmail mailer)

Create a InvocationFailureEmailResultReporter with a custom IEmail instance to use.

Exposed for unit testing.

Parameters
mailer IEmail: the IEmail instance to use.

Public methods

invocationInterrupted

void invocationInterrupted ()

Protected methods

shouldSendMessage

boolean shouldSendMessage ()

Send a message if there was an invocation failure.

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