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

    Modifier and Type
    Method
    Description
    protected void
    finished(org.junit.runner.Description description)
     
    protected void
    starting(org.junit.runner.Description description)
     

    Methods inherited from class org.junit.rules.TestWatcher

    apply, failed, skipped, skipped, succeeded

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • starting

      protected void starting(org.junit.runner.Description description)
      Overrides:
      starting in class org.junit.rules.TestWatcher
    • finished

      protected void finished(org.junit.runner.Description description)
      Overrides:
      finished in class org.junit.rules.TestWatcher