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
ANONYMOUS_USER, DASHBOARD_RECENT_UPDATES_URL, DIRECTORY_CONFIG, exceptionTransformer, filesToDelete, log, logAdjuster, RANDOM, rpc, serverStateManager, 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, VIEW_PERSONAL_SPACE_LINK, webTester, wikiMarkupRpc
 
Constructor Summary
NotificationContentsAcceptanceTest()
           
 
Method Summary
protected  void setUp()
          Default setUp method.
protected  void tearDown()
          Default tearDown method.
 void testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications()
           
 void testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications()
           
 void testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish()
           
 void testEditByGermanUserNotifyEnglishUserInEnglish()
           
 void testEditCommentNotification()
           
 void testEditorDoesntNotifyWatchers()
           
 void testEditorNotifyWatchers()
           
 void testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers()
           
 void testEditSpaceNotificationI18n()
           
 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 testNewPageUpdateByEnglishUserNotifyGermanUserInGerman()
           
 void testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish()
           
 void testPageChangeEmailNotification()
           
 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 testSiteBlogNotifications()
           
 void testSiteBlogNotificationsRespectPermissions()
           
 void testSpaceBlogWatchNotifications()
           
 void testStopWatchingPageLink()
           
 void testStopWatchingSpaceLink()
           
 void testStopWatchingUserLink()
           
 void testSysAdminsDontGetNotifiedOfRestrictedPageChanges()
           
 void TODOXHTML_testBlogPostChangeEmailNotificationShowsDiff()
           
 void TODOXHTML_testEditCommentNotificationShowsDiff()
           
 void TODOXHTML_testRemovedLineEmailNotification()
           
 void TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace()
           
 void TODOXHTML_testRemovedWordEmailNotification()
           
 void TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace()
           
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminConsole, attachments, createAndWatchTestPage, createSpaceViaWebUI, createTestSpaceViaWebUI, disableAnonymousAccess, enableAnonymousAccess, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getConfiguredBaseUrl, getFriendlyRelativeDate, getPluginHelper, goToBlogCollector, goToPagesCollector, isClustered, logInAsAdminAtHomepage, loginAsTestUser, loginAsTestUser2, loginAsTestUserAtHomepage, logins, logout, pages, rebuildIndex, setUpTestNG, tearDownTestNG, users, viewHomepage, viewPeopleDirectory, viewSpaceAdmin, viewSpacePermissions, viewSpaceSummary, viewSpaceTools, 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 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:
Exception - from super

tearDown

protected void tearDown()
                 throws 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:
Exception

testSysAdminsDontGetNotifiedOfRestrictedPageChanges

public void testSysAdminsDontGetNotifiedOfRestrictedPageChanges()
                                                         throws Exception
Throws:
Exception

testSiteBlogNotifications

public void testSiteBlogNotifications()
                               throws Exception
Throws:
Exception

testSiteBlogNotificationsRespectPermissions

public void testSiteBlogNotificationsRespectPermissions()
                                                 throws Exception
Throws:
Exception

testPageContentChangeWithNoNotifications

public void testPageContentChangeWithNoNotifications()
                                              throws Exception
Throws:
Exception

testPageTitleChangeEmailNotificationOnMinorChange

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

Throws:
Exception - if there is an unexpected problem.

testEditorNotifyWatchers

public void testEditorNotifyWatchers()
                              throws Exception
Throws:
Exception

testEditorDoesntNotifyWatchers

public void testEditorDoesntNotifyWatchers()
                                    throws Exception
Throws:
Exception

testStopWatchingSpaceLink

public void testStopWatchingSpaceLink()
                               throws Exception
Throws:
Exception

testStopWatchingPageLink

public void testStopWatchingPageLink()
                              throws Exception
Throws:
Exception

testStopWatchingUserLink

public void testStopWatchingUserLink()
                              throws Exception
Throws:
Exception

testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications

public void testAddCommentLinksHiddenToUnpermittedUsersOnPageEditNotifications()
                                                                        throws Exception
Throws:
Exception

testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications

public void testAddCommentLinksVisibleToPermittedUsersOnPageEditNotifications()
                                                                       throws Exception
Throws:
Exception

testEditSpaceNotificationI18n

public void testEditSpaceNotificationI18n()
                                   throws Exception
Throws:
Exception

testHtmlCommentNotification

public void testHtmlCommentNotification()
                                 throws Exception
Throws:
Exception

testHtmlEntitiesInCommentNotification

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

Throws:
Exception

testPageChangeEmailNotification

public void testPageChangeEmailNotification()
                                     throws Exception
Throws:
Exception

testPageChangeEmailNotificationShowsDiff

public void testPageChangeEmailNotificationShowsDiff()
                                              throws Exception
Throws:
Exception

TODOXHTML_testBlogPostChangeEmailNotificationShowsDiff

public void TODOXHTML_testBlogPostChangeEmailNotificationShowsDiff()
                                                            throws Exception
Throws:
Exception

testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers

public void testEditPageChangeEmailNotificationsShowsDiffForMultipleUsers()
                                                                   throws Exception
Throws:
Exception

TODOXHTML_testRemovedLineEmailNotification

public void TODOXHTML_testRemovedLineEmailNotification()
                                                throws Exception
Throws:
Exception

TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace

public void TODOXHTML_testRemovedLineEmailNotificationIgnoreWhiteSpace()
                                                                throws Exception
Throws:
Exception

TODOXHTML_testRemovedWordEmailNotification

public void TODOXHTML_testRemovedWordEmailNotification()
                                                throws Exception
Throws:
Exception

TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace

public void TODOXHTML_testRemovedWordEmailNotificationIgnoreWhiteSpace()
                                                                throws Exception
Throws:
Exception

testHtmlCommentRemovalNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlPageRemovalByWebNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlPageRemovalByRpcNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlBlogRemovalNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlBlogRemovalByAnonymousNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlBlogCreationNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlEditBlogNotification

public void testHtmlEditBlogNotification()
                                  throws Exception
Throws:
Exception

testHtmlAttachmentRemovalNotification

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

Throws:
Exception - if there is an unexpected problem.

testHtmlAttachmentRemovalNotificationAsAdmin

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

Throws:
Exception - if there is an unexpected problem.

testHtmlCommentReplyNotification

public void testHtmlCommentReplyNotification()
                                      throws Exception
Throws:
Exception

testHtmlCommentReplyNotificationRepliedToContent

public void testHtmlCommentReplyNotificationRepliedToContent()
                                                      throws Exception
Throws:
Exception

testEditCommentNotification

public void testEditCommentNotification()
                                 throws Exception
Throws:
Exception

TODOXHTML_testEditCommentNotificationShowsDiff

public void TODOXHTML_testEditCommentNotificationShowsDiff()
                                                    throws Exception
Throws:
Exception

testNewPageUpdateByEnglishUserNotifyGermanUserInGerman

public void testNewPageUpdateByEnglishUserNotifyGermanUserInGerman()
                                                            throws Exception
Throws:
Exception

testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish

public void testNewPageUpdateByGermanUserNotifyEnglishUserInEnglish()
                                                             throws Exception
Throws:
Exception

testEditByGermanUserNotifyEnglishUserInEnglish

public void testEditByGermanUserNotifyEnglishUserInEnglish()
                                                    throws Exception
Throws:
Exception

testPageShareByGermanUserNotifyingEnglishUserInEnglish

public void testPageShareByGermanUserNotifyingEnglishUserInEnglish()
                                                            throws Exception
Throws:
Exception

testPageShareByGermanUserNotifyingEmailInSiteDefaultLanguage

public void testPageShareByGermanUserNotifyingEmailInSiteDefaultLanguage()
                                                                  throws Exception
Throws:
Exception

testMentionByGermanUserNotifingEnglishUserInEnglish

public void testMentionByGermanUserNotifingEnglishUserInEnglish()
                                                         throws Exception
Throws:
Exception

testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish

public void testAttachmentAddedByGermanUserNotifyingEnglishUserInEnglish()
                                                                  throws Exception
Throws:
Exception

testMovePageNotificationListsMoverNotEditor

public void testMovePageNotificationListsMoverNotEditor()
                                                 throws Exception
Throws:
Exception

testSpaceBlogWatchNotifications

public void testSpaceBlogWatchNotifications()
                                     throws Exception
Throws:
Exception

testInlineTaskImagesAreAttachedWhenDiffContainsInlineTasks

public void testInlineTaskImagesAreAttachedWhenDiffContainsInlineTasks()
                                                                throws Exception
Throws:
Exception

testInlineTaskImagesAreNotAttachedWhenDiffDoesNotContainInlineTasks

public void testInlineTaskImagesAreNotAttachedWhenDiffDoesNotContainInlineTasks()
                                                                         throws Exception
Throws:
Exception


Copyright © 2003-2013 Atlassian. All Rights Reserved.