Package com.atlassian.jira.functest.rule
Class OutgoingMailConfigureSmtpRule
java.lang.Object
org.junit.rules.TestWatcher
com.atlassian.jira.functest.rule.OutgoingMailConfigureSmtpRule
- All Implemented Interfaces:
org.junit.rules.TestRule
public class OutgoingMailConfigureSmtpRule
extends org.junit.rules.TestWatcher
Rule to initialize SMTPBackdoor for listening for emails.
Starts dummy smtp server (greenmail) and configures jira to use it.
Previous step (dummy smtp server and configuration of jira) is omitted on ondemand instances.
Also proper configuration of smtp server is checked (if default smtp server is present, and outgoing emails are not disabled -Datlassian.mail.senddisabled=true)
- Since:
- v7.1
-
Method Summary
Methods inherited from class org.junit.rules.TestWatcher
apply, failed, skipped, skipped, succeeded
-
Method Details
-
starting
protected void starting(org.junit.runner.Description description) - Overrides:
startingin classorg.junit.rules.TestWatcher
-
finished
protected void finished(org.junit.runner.Description description) - Overrides:
finishedin classorg.junit.rules.TestWatcher
-