com.atlassian.confluence.notifications
Class NotificationContentsAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.atlassian.confluence.junit3.JUnit3TimingTestCase
              extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                  extended by com.atlassian.confluence.notifications.NotificationContentsAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class NotificationContentsAcceptanceTest
extends AbstractConfluenceAcceptanceTest

Tests the contents and headers of email notifications


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
DASHBOARD_RECENT_UPDATES_URL, log, logAdjuster, RANDOM, rpc, TEST_ADMIN, TEST_BLOG, TEST_COMMENT, TEST_GROUP1, TEST_GROUP2, TEST_PAGE, TEST_SPACE, TEST_SPACE2, TEST_USER1, TEST_USER2, TESTBLOG_CONTENT, TESTBLOG_TITLE, testData, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_KEY, TESTSPACE2_TITLE, webTester, wikiMarkupRpc
 
Constructor Summary
NotificationContentsAcceptanceTest()
           
 
Method Summary
 void CONF_29248_testPageChangedEmailNotificationShowsDiffAttachment()
           
protected  void setUp()
          Default setUp method.
protected  void tearDown()
          Default tearDown method.
 void testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications()
           
 void testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications()
           
 void testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish()
           
 void testBlogPostChangeEmailNotificationShowsDiff()
           
 void testCommentLikeEmailForFollowedUser()
           
 void testCommentLikeEmailWhenRecipientIsAuthor()
           
 void testEditByGermanUserNotifyEnglishUserInEnglish()
           
 void testEditCommentNotification()
           
 void testEditCommentNotificationShowsDiff()
           
 void testEditorDoesntNotifyWatchers()
           
 void testEditorNotifyWatchers()
           
 void testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers()
           
 void testFollowerEmailManyUsers()
           
 void testFollowerEmailOneUser()
           
 void testFollowerEmailSomeUsers()
           
 void testHtmlAttachmentRemovalNotification()
          Tests that when an attachment is removed, the notification generated contains the appropriate names.
 void testHtmlAttachmentRemovalNotificationAsAdmin()
          Tests that when an attachment is removed, the notification generated contains the appropriate names.
 void testHtmlBlogCreationNotification()
          Tests notification on blog post creation.
 void testHtmlBlogRemovalByAnonymousNotification()
          Tests that when a blog post is removed by an the anonymous user, the notification generated contains the appropriate names.
 void testHtmlBlogRemovalNotification()
          Tests that when a blogpost is removed, the notification generated contains the appropriate names.
 void testHtmlCommentNotification()
           
 void testHtmlCommentRemovalNotification()
          Tests that when a comment is removed, the notification generated contains the appropriate names and the background is red.
 void testHtmlCommentReplyNotification()
           
 void testHtmlCommentReplyNotificationRepliedToContent()
           
 void testHtmlEditBlogNotification()
           
 void testHtmlEntitiesInCommentNotification()
          CONFDEV-1988 - encoding of HTML entities in notifications
 void testHtmlPageRemovalByRpcNotification()
          Tests that when a page is removed by RPC, the notification generated contains the appropriate names.
 void testHtmlPageRemovalByWebNotification()
          Tests that when a page is removed, the notification generated contains the appropriate names.
 void testInlineTaskImagesAreAttachedWhenDiffContainsInlineTasks()
           
 void testInlineTaskImagesAreNotAttachedWhenDiffDoesNotContainInlineTasks()
           
 void testMentionByGermanUserNotifingEnglishUserInEnglish()
           
 void testMovePageNotificationListsMoverNotEditor()
           
 void testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish()
           
 void testPageAddedNotification()
           
 void testPageChangeEmailNotificationShowsDiff()
           
 void testPageContentChangeWithNoNotifications()
           
 void testPageShareByGermanUserNotifyingEmailInSiteDefaultLanguage()
           
 void testPageShareByGermanUserNotifyingEnglishUserInEnglish()
           
 void testPageTitleChangeEmailNotificationOnMinorChange()
          Check that a notification mail is sent on title changes even if the 'minor edit' checkbox is ticked
 void testRemovedLineEmailNotification()
           
 void testRemovedWordEmailNotification()
           
 void testSiteBlogNotifications()
           
 void testSiteBlogNotificationsRespectPermissions()
           
 void testSpaceBlogWatchNotifications()
           
 void testStopWatchingPageLink()
           
 void testStopWatchingSpaceLink()
           
 void testStopWatchingUserLink()
           
 void testSysAdminsDontGetNotifiedOfRestrictedPageChanges()
           
 void testUserProfileImageInEmailIsCorrect()
           
 void TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace()
           
 void TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace()
           
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, attachments, createSpaceViaWebUI, createTestSpaceViaWebUI, directoryConfig, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getPluginHelper, getServerStateManager, goToBlogCollector, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUpTestNG, tearDownTestNG, users, viewHomepage, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, viewTrash, watchSpace, webAppContextPath
 
Methods inherited from class com.atlassian.confluence.junit3.JUnit3TimingTestCase
runBare, setExceptionTransformer
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotificationContentsAcceptanceTest

public NotificationContentsAcceptanceTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Description copied from class: AbstractConfluenceAcceptanceTest
Default setUp method. Establishes XML-RPC connection and sets the base URL. Also configures LDAP repository.

Overrides:
setUp in class AbstractConfluenceAcceptanceTest
Throws:
java.lang.Exception - from super

tearDown

protected void tearDown()
                 throws java.lang.Exception
Description copied from class: AbstractConfluenceAcceptanceTest
Default tearDown method. Removes any files which were added to the AbstractConfluenceAcceptanceTest.filesToDelete list.

Overrides:
tearDown in class AbstractConfluenceAcceptanceTest
Throws:
java.lang.Exception

testPageAddedNotification

public void testPageAddedNotification()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testSysAdminsDontGetNotifiedOfRestrictedPageChanges

public void testSysAdminsDontGetNotifiedOfRestrictedPageChanges()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testSiteBlogNotifications

public void testSiteBlogNotifications()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testSiteBlogNotificationsRespectPermissions

public void testSiteBlogNotificationsRespectPermissions()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testPageContentChangeWithNoNotifications

public void testPageContentChangeWithNoNotifications()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

testPageTitleChangeEmailNotificationOnMinorChange

public void testPageTitleChangeEmailNotificationOnMinorChange()
                                                       throws java.lang.Exception
Check that a notification mail is sent on title changes even if the 'minor edit' checkbox is ticked

Throws:
java.lang.Exception - if there is an unexpected problem.

testEditorNotifyWatchers

public void testEditorNotifyWatchers()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testEditorDoesntNotifyWatchers

public void testEditorDoesntNotifyWatchers()
                                    throws java.lang.Exception
Throws:
java.lang.Exception

testStopWatchingSpaceLink

public void testStopWatchingSpaceLink()
                               throws java.lang.Exception
Throws:
java.lang.Exception

testStopWatchingPageLink

public void testStopWatchingPageLink()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testStopWatchingUserLink

public void testStopWatchingUserLink()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testFollowerEmailOneUser

public void testFollowerEmailOneUser()
                              throws java.lang.Exception
Throws:
java.lang.Exception

testFollowerEmailSomeUsers

public void testFollowerEmailSomeUsers()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testFollowerEmailManyUsers

public void testFollowerEmailManyUsers()
                                throws java.lang.Exception
Throws:
java.lang.Exception

testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications

public void testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications()
                                                                        throws java.lang.Exception
Throws:
java.lang.Exception

testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications

public void testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications()
                                                                       throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlCommentNotification

public void testHtmlCommentNotification()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlEntitiesInCommentNotification

public void testHtmlEntitiesInCommentNotification()
                                           throws java.lang.Exception
CONFDEV-1988 - encoding of HTML entities in notifications

Throws:
java.lang.Exception

testPageChangeEmailNotificationShowsDiff

public void testPageChangeEmailNotificationShowsDiff()
                                              throws java.lang.Exception
Throws:
java.lang.Exception

CONF_29248_testPageChangedEmailNotificationShowsDiffAttachment

public void CONF_29248_testPageChangedEmailNotificationShowsDiffAttachment()
                                                                    throws java.lang.Exception
Throws:
java.lang.Exception

testBlogPostChangeEmailNotificationShowsDiff

public void testBlogPostChangeEmailNotificationShowsDiff()
                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers

public void testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers()
                                                                   throws java.lang.Exception
Throws:
java.lang.Exception

testRemovedLineEmailNotification

public void testRemovedLineEmailNotification()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace

public void TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

testRemovedWordEmailNotification

public void testRemovedWordEmailNotification()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace

public void TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlCommentRemovalNotification

public void testHtmlCommentRemovalNotification()
                                        throws java.lang.Exception
Tests that when a comment is removed, the notification generated contains the appropriate names and the background is red.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlPageRemovalByWebNotification

public void testHtmlPageRemovalByWebNotification()
                                          throws java.lang.Exception
Tests that when a page is removed, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlPageRemovalByRpcNotification

public void testHtmlPageRemovalByRpcNotification()
                                          throws java.lang.Exception
Tests that when a page is removed by RPC, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlBlogRemovalNotification

public void testHtmlBlogRemovalNotification()
                                     throws java.lang.Exception
Tests that when a blogpost is removed, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlBlogRemovalByAnonymousNotification

public void testHtmlBlogRemovalByAnonymousNotification()
                                                throws java.lang.Exception
Tests that when a blog post is removed by an the anonymous user, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlBlogCreationNotification

public void testHtmlBlogCreationNotification()
                                      throws java.lang.Exception
Tests notification on blog post creation.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlEditBlogNotification

public void testHtmlEditBlogNotification()
                                  throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlAttachmentRemovalNotification

public void testHtmlAttachmentRemovalNotification()
                                           throws java.lang.Exception
Tests that when an attachment is removed, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlAttachmentRemovalNotificationAsAdmin

public void testHtmlAttachmentRemovalNotificationAsAdmin()
                                                  throws java.lang.Exception
Tests that when an attachment is removed, the notification generated contains the appropriate names.

Throws:
java.lang.Exception - if there is an unexpected problem.

testHtmlCommentReplyNotification

public void testHtmlCommentReplyNotification()
                                      throws java.lang.Exception
Throws:
java.lang.Exception

testHtmlCommentReplyNotificationRepliedToContent

public void testHtmlCommentReplyNotificationRepliedToContent()
                                                      throws java.lang.Exception
Throws:
java.lang.Exception

testEditCommentNotification

public void testEditCommentNotification()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

testEditCommentNotificationShowsDiff

public void testEditCommentNotificationShowsDiff()
                                          throws java.lang.Exception
Throws:
java.lang.Exception

testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish

public void testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish()
                                                             throws java.lang.Exception
Throws:
java.lang.Exception

testEditByGermanUserNotifyEnglishUserInEnglish

public void testEditByGermanUserNotifyEnglishUserInEnglish()
                                                    throws java.lang.Exception
Throws:
java.lang.Exception

testPageShareByGermanUserNotifyingEnglishUserInEnglish

public void testPageShareByGermanUserNotifyingEnglishUserInEnglish()
                                                            throws java.lang.Exception
Throws:
java.lang.Exception

testPageShareByGermanUserNotifyingEmailInSiteDefaultLanguage

public void testPageShareByGermanUserNotifyingEmailInSiteDefaultLanguage()
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testMentionByGermanUserNotifingEnglishUserInEnglish

public void testMentionByGermanUserNotifingEnglishUserInEnglish()
                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish

public void testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish()
                                                                  throws java.lang.Exception
Throws:
java.lang.Exception

testMovePageNotificationListsMoverNotEditor

public void testMovePageNotificationListsMoverNotEditor()
                                                 throws java.lang.Exception
Throws:
java.lang.Exception

testSpaceBlogWatchNotifications

public void testSpaceBlogWatchNotifications()
                                     throws java.lang.Exception
Throws:
java.lang.Exception

testInlineTaskImagesAreAttachedWhenDiffContainsInlineTasks

public void testInlineTaskImagesAreAttachedWhenDiffContainsInlineTasks()
                                                                throws java.lang.Exception
Throws:
java.lang.Exception

testInlineTaskImagesAreNotAttachedWhenDiffDoesNotContainInlineTasks

public void testInlineTaskImagesAreNotAttachedWhenDiffDoesNotContainInlineTasks()
                                                                         throws java.lang.Exception
Throws:
java.lang.Exception

testCommentLikeEmailWhenRecipientIsAuthor

public void testCommentLikeEmailWhenRecipientIsAuthor()
                                               throws java.lang.Exception
Throws:
java.lang.Exception

testCommentLikeEmailForFollowedUser

public void testCommentLikeEmailForFollowedUser()
                                         throws java.lang.Exception
Throws:
java.lang.Exception

testUserProfileImageInEmailIsCorrect

public void testUserProfileImageInEmailIsCorrect()
                                          throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2013 Atlassian. All Rights Reserved.