Class OutgoingMailEventQueueRule

java.lang.Object
org.junit.rules.TestWatcher
com.atlassian.jira.functest.rule.OutgoingMailEventQueueRule
All Implemented Interfaces:
org.junit.rules.TestRule

public class OutgoingMailEventQueueRule extends org.junit.rules.TestWatcher
Rule to initialize SMTPBackdoor for listening for emails. Outgoing mail listening queue is turned on and cleared when test is started and listening queue is turned of on test end. Tested methods should be annotated with MailTest
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