com.atlassian.confluence
Class UserManagementAcceptanceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by com.atlassian.confluence.AbstractAtlassianWebTestCase
                  extended by com.atlassian.confluence.AbstractConfluenceAcceptanceTest
                      extended by com.atlassian.confluence.UserManagementAcceptanceTest
All Implemented Interfaces:
junit.framework.Test

public class UserManagementAcceptanceTest
extends AbstractConfluenceAcceptanceTest


Field Summary
 
Fields inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
adminToken, ANONYMOUS_USER, BLOG_DATE_FORMAT, BROWSE_MENU_LINK_ID, context, filesToDelete, funcTestRpcPlugin, LDAP_MODE, log, PAUSE_MILLIS, PAUSE_MYSQL_MILLIS, pluginHelper, RANDOM, RPCLOG_DEBUG, RPCLOG_ERROR, RPCLOG_INFO, RPCLOG_SYSTEM_ERR, RPCLOG_SYSTEM_OUT, RPCLOG_WARN, TEST_ADMIN, TEST_ADMIN_EMAIL, TEST_ADMIN_FULLNAME, TEST_ADMIN_PASSWORD, TEST_ADMIN_USERNAME, TEST_GEN_EMAIL1, TEST_GEN_EMAIL2, TEST_GEN_FULLNAME1, TEST_GEN_FULLNAME2, TEST_GEN_PASSWORD1, TEST_GEN_PASSWORD2, TEST_GEN_USERNAME1, TEST_GEN_USERNAME2, TEST_GROUP1, TEST_USER1, TEST_USER2, TESTMAILSERVER_HOSTNAME, TESTPAGE_COMMENT, TESTPAGE_CONTENT, TESTPAGE_TITLE, TESTSPACE_DESCRIPTION, TESTSPACE_KEY, TESTSPACE_TITLE, TESTSPACE2_DESCRIPTION, TESTSPACE2_KEY, TESTSPACE2_TITLE, testUser2Token, testUserToken, userHelper, VIEW_PERSONAL_SPACE_LINK, xmlrpc
 
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
SITE_TITLE_SUFFIX, TITLE_SEPARATOR
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
tester
 
Constructor Summary
UserManagementAcceptanceTest()
           
 
Method Summary
protected  void setUp()
          Default setUp method.
 void testAddExistingGroup()
           
 void testAddGroup()
           
 void testAddUser()
           
 void testAddUserToGroup()
           
 void testAddUserWithUTF8Characters()
           
 void testAddUserWithWhiteSpaceCharacters()
           
 void testAssigningUserToGroup()
           
 void testBlankQuery()
           
 void testCanAddMembershipToConfluenceAdministratorsGroupAsSysAdmin()
           
 void testCanAddMembershipToSysAdminGroupAsSysAdmin()
           
 void testCanEditUserWithSystemAdministratorPermissionAsSysAdmin()
           
 void testCannotAddMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin()
           
 void testCannotAddMembershipToSysAdminGroupAsConfluenceAdmin()
           
 void testCannotEditUserWithSystemAdministratorPermissionAsConfluenceAdmin()
           
 void testCannotRemoveGroupWithSystemAdministratorPermissionsAsConfluenceAdmin()
           
 void testCannotRemoveMembershipFromSysAdminGroupAsConfluenceAdmin()
           
 void testCannotRemoveMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin()
           
 void testCannotRemoveUserWithSystemAdministratorPermissionAsConfluenceAdmin()
           
 void testCanRemoveGroupWithSystemAdministratorPermissionsAsSystemAdministrator()
           
 void testCanRemoveMembershipFromConfluenceAdministratorsGroupAsSysAdmin()
           
 void testCanRemoveMembershipFromSysAdminGroupAsSysAdmin()
           
 void testCanRemoveNormalGroupsAsConfluenceAdmin()
           
 void testEditUserDetails()
           
 void testEditUserDetailsAndCancel()
           
 void testEditUserDetailsForUserWithUTF8Characters()
           
 void testEditUserDetailsForUserWithUTF8CharactersAndCancel()
           
 void testGroupPaging()
           
 void testLoginCaseSensitivity()
           
 void testRemoveAdminGroup()
           
 void testRemoveGroup()
           
 void testRemoveGroupWithMembersPresent()
           
 void testRemoveGroupWithSpacePermissions()
           
 void testRemoveUser()
           
 void testRemoveUserFromGroup()
           
 void testRemoveUserWithUTF8Characters()
           
 void testSetPassword()
           
 void testSetPasswordAndCancel()
           
 void testSetPasswordForUserWithUTF8Characters()
           
 void testSetPasswordForUserWithUTF8CharactersAndCancel()
           
 void testSetPasswordWithIncorrectConfirmation()
           
 void testUserOrder()
           
 
Methods inherited from class com.atlassian.confluence.AbstractConfluenceAcceptanceTest
addAnonymousPermissionsToSpace, addComment, addCommentToBlogPost, addPageComment, addSpaceLabel, addUserProfilePicture, addUserToGroupViaHelper, addWatchPage, assertImageValid, assertLoggedInAs, attachFile, attachFileWithName, chooseRandomBaseUrl, clickRemoveLink, createBlog, createGroup, createGroupViaHelper, createMail, createPage, createPageWithViewRestrictions, createPersonalSpace, createPersonalSpaceForCurrentUser, createSpaceViaWebUi, createSpaceViaWebUI, createSpaceViaWebUI, createTemplate, createTestGroupViaHelper, createTestSpaceViaWebUI, createTestUser1ViaHelper, createTestUser2ViaHelper, createUserViaHelper, createUserViaHelper, disableAnonymousAccess, downloadToTempFile, editBlogLabels, editBlogPostContent, editPage, editPageContent, editPageContent, editPageLabels, editPageWithContent, editPageWithContent, editProfile, editSpacePermsForm, emptyTrash, enableAnonymousAccess, enableAnonymousAccessToSpace, ensureTestUserCanViewTestSpace, ensureUserCanViewSpace, generateBaseUrl, generateFile, getAppContext, getBaseUrl, getCurrentMailQueueSize, getEventLatch, getFriendlyRelativeDate, getPageId, getTestProperty, getTestPropertyAsInt, getTestSpace, getTodaysBlogPostDate, getUserGroups, goToEditGeneralConfiguration, gotoPageWithError, grantAnonymousUseConfluencePermission, grantGlobalBrowsePermissionToGroup, grantGlobalPermissionToGroup, grantGlobalPermissionToUser, grantSpacePermissionToGroup, grantSpacePermissionToUser, grantViewSpacePermissionToGroup, grantViewSpacePermissionToUser, importGlobalBackup, importMail, importSpaceBackup, isClustered, logInAs, logInAs, loginAs, logInAsAdmin, loginAsTestUser, loginAsTestUser2, logout, makeParams, makeParams, makeParams, makeParams, makeParams, makeParams, makeParams, movePage, movePage, movePageToNewParent, movePageToNewParent, movePageToNewSpace, openInsertImagePopup, openInsertLinkPopup, pause, removeBlog, removeGroup, removePageOrBlogById, removePersonalSpace, removeTestUser1, removeTestUser1ViaHelper, removeUser, removeUserFromGroupViaHelper, removeUserViaHelper, renamePage, restoreBaseUrl, revokeAnonymousUseConfluencePermission, revokeGlobalPermissionFromGroup, revokeGlobalPermissionFromUser, revokeSpacePermissionFromGroup, revokeSpacePermissionFromUser, rpcAddComment, rpcAddComment, rpcAddComment, rpcAddLabelToBlog, rpcAddLabelToPage, rpcAddLabelToPage, rpcAddLabelToSpace, rpcAddTestComment, rpcConvertToPersonalSpace, rpcCreateBlogPost, rpcCreatePage, rpcCreatePage, rpcCreatePersonalSpace, rpcCreateSpace, rpcCreateSpace, rpcCreateSpaceGroup, rpcCreateTestPage, rpcCreateTestSpace, rpcCreateTestSpace2, rpcEditBlogPost, rpcEditPage, rpcFlushAllCaches, rpcFlushIndexQueue, rpcGetAdminToken, rpcGetBlogPostId, rpcGetChildren, rpcGetComments, rpcGetLocalisedText, rpcGetMailQueueSize, rpcGetPageId, rpcGetPageLabels, rpcGetPageLabels, rpcGetTestUser2Token, rpcGetTestUserToken, rpcGetTopLevelPages, rpcGetUserGroups, rpcGetUsersForActivity, rpcGetUserToken, rpcGetUserToken, rpcGrantAnonymousSpacePermission, rpcGrantGlobalPermission, rpcGrantSpacePermission, rpcGrantViewSpacePermission, rpcHasGroup, rpcHasUser, rpcLog, rpclogCommandOutput, rpcLogOutAdmin, rpcMovePage, rpcMovePageToTopLevel, rpcPauseJob, rpcRemoveAllSpaceGroups, rpcRemoveAnonymousSpacePermission, rpcRemoveAttachment, rpcRemoveComment, rpcRemoveComment, rpcRemoveGlobalPermissions, rpcRemoveGroup, rpcRemoveLabelFromPage, rpcRemoveLabelFromPage, rpcRemoveLabelFromSpace, rpcRemovePage, rpcRemoveSpace, rpcRemoveSpacePermission, rpcRemoveUserUncleanly, rpcRenderContent, rpcResumeJob, rpcStartActivity, rpcStoreBlogEntry, rpcTrashPage, rpcTrashPage, rpcTrashPage, search, setAllowCamelCase, setAnonymousRemoteApi, setAttachmentMaxUploadSize, setDailyEmailPreference, setDraftSaveInterval, setEditPermissionsForGroups, setEditPermissionsForUsers, setEmailFormatPreference, setEmailMask, setEnableWysiwyg, setExternalUserManagement, setHttpCompression, setNotifyOnMyActions, setPageLabels, setPublicSignup, setRemoteApi, setSharedMode, setThreadedComments, setViewPermissionsForGroups, setViewPermissionsForUsers, showAllUsers, shutdownQuartz, stripContext, tearDown, viewAbstractPage, viewBlog, viewEditBlogPostPage, viewGlobalAdmin, viewGlobalPermissions, viewHomepage, viewLabel, viewLanguages, viewPage, viewPeopleDirectory, viewProfile, viewSpaceAdmin, viewSpaceAdvanced, viewSpaceContent, viewSpacePermissions, viewSpaceSummary, viewSpaceSummary, viewTodaysBlog, viewTrash, viewUser, waitForLongRunningTaskToComplete, watchPage, watchSpace, xmlRpcExecute
 
Methods inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase
assertCollectionContainsKeyWithValue, assertContains, assertDoesNotContain, assertElementNotPresentByXPath, assertElementPresentByXPath, assertEndsWith, assertLinkPresent, assertLinkPresentWithHref, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithTextAndHref, assertPageTitleEquals, assertServerResponseContains, assertServerResponseDoesNotContain, assertStartsWith, assertStatusCode, assertTextNotPresent, assertTextsPresentInOrder, assertTextsPresentInOrder, assertTitleEquals, assertTitleEquals, getGroupFromResponse
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementPresent, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertImagePresent, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithText, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextPresent, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributByXPath, getElementTextByXPath, getFormElementValue, getImage, getMessage, getMessage, getPageSource, getServeurResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UserManagementAcceptanceTest

public UserManagementAcceptanceTest()
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

testBlankQuery

public void testBlankQuery()

testAddUser

public void testAddUser()

testAddUserWithUTF8Characters

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

testAddUserWithWhiteSpaceCharacters

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

testAddGroup

public void testAddGroup()

testGroupPaging

public void testGroupPaging()
                     throws java.io.IOException,
                            org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testAddExistingGroup

public void testAddExistingGroup()

testRemoveUser

public void testRemoveUser()
                    throws java.io.IOException,
                           org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testRemoveUserWithUTF8Characters

public void testRemoveUserWithUTF8Characters()
                                      throws java.io.IOException,
                                             org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testRemoveGroup

public void testRemoveGroup()

testRemoveGroupWithMembersPresent

public void testRemoveGroupWithMembersPresent()
                                       throws java.io.IOException,
                                              org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testRemoveGroupWithSpacePermissions

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

testRemoveAdminGroup

public void testRemoveAdminGroup()

testLoginCaseSensitivity

public void testLoginCaseSensitivity()

testEditUserDetails

public void testEditUserDetails()
                         throws java.io.IOException,
                                org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testEditUserDetailsAndCancel

public void testEditUserDetailsAndCancel()
                                  throws java.io.IOException,
                                         org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testEditUserDetailsForUserWithUTF8Characters

public void testEditUserDetailsForUserWithUTF8Characters()
                                                  throws java.io.IOException,
                                                         org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testEditUserDetailsForUserWithUTF8CharactersAndCancel

public void testEditUserDetailsForUserWithUTF8CharactersAndCancel()
                                                           throws java.io.IOException,
                                                                  org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testSetPassword

public void testSetPassword()
                     throws java.io.IOException,
                            org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testSetPasswordWithIncorrectConfirmation

public void testSetPasswordWithIncorrectConfirmation()
                                              throws java.io.IOException,
                                                     org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testSetPasswordAndCancel

public void testSetPasswordAndCancel()
                              throws java.io.IOException,
                                     org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testSetPasswordForUserWithUTF8Characters

public void testSetPasswordForUserWithUTF8Characters()
                                              throws java.io.IOException,
                                                     org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testSetPasswordForUserWithUTF8CharactersAndCancel

public void testSetPasswordForUserWithUTF8CharactersAndCancel()
                                                       throws java.io.IOException,
                                                              org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testAssigningUserToGroup

public void testAssigningUserToGroup()
                              throws java.io.IOException,
                                     org.apache.xmlrpc.XmlRpcException
Throws:
java.io.IOException
org.apache.xmlrpc.XmlRpcException

testAddUserToGroup

public void testAddUserToGroup()

testRemoveUserFromGroup

public void testRemoveUserFromGroup()

testUserOrder

public void testUserOrder()

testCanAddMembershipToSysAdminGroupAsSysAdmin

public void testCanAddMembershipToSysAdminGroupAsSysAdmin()

testCannotAddMembershipToSysAdminGroupAsConfluenceAdmin

public void testCannotAddMembershipToSysAdminGroupAsConfluenceAdmin()

testCanRemoveMembershipFromSysAdminGroupAsSysAdmin

public void testCanRemoveMembershipFromSysAdminGroupAsSysAdmin()

testCannotRemoveMembershipFromSysAdminGroupAsConfluenceAdmin

public void testCannotRemoveMembershipFromSysAdminGroupAsConfluenceAdmin()

testCannotAddMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin

public void testCannotAddMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin()

testCannotRemoveMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin

public void testCannotRemoveMembershipToConfluenceAdministratorsGroupAsConfluenceAdmin()

testCanAddMembershipToConfluenceAdministratorsGroupAsSysAdmin

public void testCanAddMembershipToConfluenceAdministratorsGroupAsSysAdmin()

testCanRemoveMembershipFromConfluenceAdministratorsGroupAsSysAdmin

public void testCanRemoveMembershipFromConfluenceAdministratorsGroupAsSysAdmin()

testCannotRemoveGroupWithSystemAdministratorPermissionsAsConfluenceAdmin

public void testCannotRemoveGroupWithSystemAdministratorPermissionsAsConfluenceAdmin()

testCanRemoveGroupWithSystemAdministratorPermissionsAsSystemAdministrator

public void testCanRemoveGroupWithSystemAdministratorPermissionsAsSystemAdministrator()

testCanRemoveNormalGroupsAsConfluenceAdmin

public void testCanRemoveNormalGroupsAsConfluenceAdmin()

testCannotRemoveUserWithSystemAdministratorPermissionAsConfluenceAdmin

public void testCannotRemoveUserWithSystemAdministratorPermissionAsConfluenceAdmin()

testCannotEditUserWithSystemAdministratorPermissionAsConfluenceAdmin

public void testCannotEditUserWithSystemAdministratorPermissionAsConfluenceAdmin()

testCanEditUserWithSystemAdministratorPermissionAsSysAdmin

public void testCanEditUserWithSystemAdministratorPermissionAsSysAdmin()


Copyright © 2003-2008 Atlassian Pty Ltd. All Rights Reserved.