Class TestSharedEmailSubscription

All Implemented Interfaces:
FunctTestConstants

public class TestSharedEmailSubscription extends AbstractSubscriptionEmailTest
Test email subscriptions to shared filters in JIRA.

The test data in 'TestSubscription.xml' contains three projects. 'ProjectOne' (KEY: ONE) contains 210 issues. All of these issues can be returned using the global 'FilterOne' or 'FredFilterOne' saved search. 'ProjectTwo' (KEY: TWO) conatins 2 issues. All of these issues can be returned using the global 'FilterTwo' or 'FredFilterTwo' saved search. Finally, there are global filters called 'ZeroFilter' and 'FredZeroFilter' that returns no issues.

The test data also contains three users. Admin is the administrator and expectes text e-mails. Bob is not an administrator but also expects text e-mails. Fred is not an administrator and expects HTML e-mails.

Since:
v3.13
  • Constructor Details

    • TestSharedEmailSubscription

      public TestSharedEmailSubscription()
  • Method Details

    • setUpMailServer

      public void setUpMailServer()
    • setUpNotificationType

      public void setUpNotificationType()
    • testHtmlSharedZeroResults

      public void testHtmlSharedZeroResults() throws Exception
      Check e-mail subscription to a shared filter that contains no issues using an unpriveleged user. The e-mail returned should be in HTML for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.
    • testHtmlSharedCompleteResults

      public void testHtmlSharedCompleteResults() throws Exception
      Check e-mail subscription to a shared filter that contains all matched issues using an unpriveleged user. The e-mail returned should be in HTML for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.
    • testHtmlSharedPartialResults

      public void testHtmlSharedPartialResults() throws Exception
      Check e-mail subscription that only contains some of the filter's results using an unprivieleged user. There should be a link to the filter in these e-mails. The e-mail returned should be in HTML for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.
    • testTextSharedZeroResults

      public void testTextSharedZeroResults() throws Exception
      Check e-mail subscription to a shared filter that contains no issues using an unpriveleged user. The e-mail returned should be in text for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.
    • testTextSharedCompleteResults

      public void testTextSharedCompleteResults() throws Exception
      Check e-mail subscription to a shared filter that contains all matched issues using an unpriveleged user. The e-mail returned should be in text for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.
    • testTextSharedPartialResults

      public void testTextSharedPartialResults() throws Exception
      Check e-mail subscription that only contains some of the filter's results using an unprivieleged user. There should be a link to the filter in these e-mails. The e-mail returned should be in text for this user.
      Throws:
      Exception - test just throws exception when unexpected error occurs to fail the test.