FailureEmailResultReporter
public
class
FailureEmailResultReporter
extends EmailResultReporter
java.lang.Object | |||
↳ | com.android.tradefed.result.CollectingTestListener | ||
↳ | com.android.tradefed.result.EmailResultReporter | ||
↳ | com.android.tradefed.result.FailureEmailResultReporter |
An EmailResultReporter
that sends notifications if either a test failure or invocation
failure occurred.
Summary
Public constructors | |
---|---|
FailureEmailResultReporter()
Default constructor |
Protected constructors | |
---|---|
FailureEmailResultReporter(IEmail mailer)
Create a |
Protected methods | |
---|---|
boolean
|
shouldSendMessage()
Send a message if there was a failure. |
Public constructors
FailureEmailResultReporter
public FailureEmailResultReporter ()
Default constructor
Protected constructors
FailureEmailResultReporter
protected FailureEmailResultReporter (IEmail mailer)
Create a FailureEmailResultReporter
with a custom IEmail
instance to use.
Parameters | |
---|---|
mailer |
IEmail : the IEmail instance to use.
|
Protected methods
shouldSendMessage
protected boolean shouldSendMessage ()
Send a message if there was a failure.
Returns | |
---|---|
boolean |
true if the InvocationStatus is not InvocationStatus#SUCCESS or
if CollectingTestListener.hasFailedTests() is true, false otherwise.
|