com.atlassian.crowd.acceptance.tests.directory
Class RemoteCrowdDirectoryTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by net.sourceforge.jwebunit.junit.WebTestCase
              extended by com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
                  extended by com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
                      extended by com.atlassian.crowd.acceptance.tests.directory.RemoteCrowdDirectoryTest
All Implemented Interfaces:
junit.framework.Test

public class RemoteCrowdDirectoryTest
extends CrowdAcceptanceTestCase


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WORKGROUP_LICENSE_KEY
 
Fields inherited from class net.sourceforge.jwebunit.junit.WebTestCase
customTester, tester
 
Constructor Summary
RemoteCrowdDirectoryTest()
           
 
Method Summary
 void setUp()
           
 void testAddActiveUser()
           
 void testAddGroup()
           
 void testAddGroupDuplicate()
           
 void testAddGroupToGroup()
           
 void testAddGroupToGroupBadChild()
           
 void testAddGroupToGroupBadParent()
           
 void testAddGroupToGroupDuplicate()
           
 void testAddInactiveUser()
           
 void testAddUserDuplicate()
           
 void testAddUserNoPassword()
           
 void testAddUserToGroup()
           
 void testAddUserToGroupBadGroup()
           
 void testAddUserToGroupBadUser()
           
 void testAddUserToGroupDuplicate()
           
 void testAuthenticate()
           
 void testAuthenticateBadPassword()
           
 void testAuthenticateNoUser()
           
 void testBadClientParameters()
           
 void testConnection()
           
 void testFindGroupByName()
           
 void testFindGroupByNameNotFound()
           
 void testFindGroupWithAttributesByName()
           
 void testFindGroupWithAttributesByNameNotFound()
           
 void testFindUserByName()
           
 void testFindUserByNameNotFound()
           
 void testFindUserWithAttributesByName()
           
 void testFindUserWithAttributesByNameNotFound()
           
 void testFindUserWithSpacesInName()
           
 void testGetGroupMembersOfGroup()
           
 void testGetGroupNameMembersOfGroup()
           
 void testGetUserMembersOfGroup()
           
 void testGetUserNameMembersOfGroup()
           
 void testGroupMembershipsForGroup()
           
 void testGroupMembershipsForUser()
           
 void testGroupNameMembershipsForGroup()
           
 void testGroupNameMembershipsForUser()
           
 void testInvalidConnections()
           
 void testIsGroupDirectMemberOfGroup()
           
 void testIsUserDirectMemberOfGroup()
           
 void testNestedGroupSupport()
           
 void testRemoveGroup()
           
 void testRemoveGroupAttributes()
           
 void testRemoveGroupAttributesBadAttribute()
           
 void testRemoveGroupAttributesBadGroup()
           
 void testRemoveGroupBadGroup()
           
 void testRemoveGroupFromGroup()
           
 void testRemoveGroupFromGroupBadChild()
           
 void testRemoveGroupFromGroupBadParent()
           
 void testRemoveUser()
           
 void testRemoveUserAttributes()
           
 void testRemoveUserAttributesBadAttribute()
           
 void testRemoveUserAttributesBadUser()
           
 void testRemoveUserBadUser()
           
 void testRemoveUserFromGroup()
           
 void testRemoveUserFromGroupBadGroup()
           
 void testRemoveUserFromGroupBadUser()
           
 void testSearchAllGroupNames()
           
 void testSearchAllGroups()
           
 void testSearchAllUserNames()
           
 void testSearchAllUsers()
           
 void testSearchGroups_NameRestriction()
           
 void testSearchUsers_ActiveRestriction()
           
 void testSearchUsers_EmailRestriction()
           
 void testSearchUsers_InactiveRestriction()
           
 void testStoreGroupAttributes()
           
 void testStoreGroupAttributesBadGroup()
           
 void testStoreGroupAttributesEmptySet()
           
 void testStoreUserAttributes()
           
 void testStoreUserAttributesBadUser()
           
 void testStoreUserAttributesEmptySet()
           
 void testUpdateGroup()
           
 void testUpdateGroupNotFound()
           
 void testUpdateUser()
           
 void testUpdateUserNotFound()
           
 void testUpdateUserPassword()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
_loginAdminUser, _loginAsUser, _logout, assertUnescapedKeyNotPresent, assertUnescapedKeyPresent, assertUserInTable, assertUserInTable, assertUserNotInTable, getBaseUrl, getCrowdApplicationPassword, getCrowdHome, getText, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAdministrationPage, gotoBackup, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewGroup, gotoViewPrincipal, intendToModifyData, intendToModifyLdapData, log, restoreBaseSetup, restoreCrowdFromXML, submitLoginForm, submitLoginFormAsAdminUser, tearDown
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertKeyInElement, assertKeyPresent, assertKeyPresent, assertKeyPresent, assertKeyPresentOnce, assertLinkPresentWithKey, assertServerResponseContains, assertServerResponseDoesNotContain, assertSuccessPresent, assertTextPresent, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, clickLinkWithKey, getElementTextById, getPageText, isTextPresent, scrapeTable, scrapeTable, setRadioButton, setTester, waitFor, waitForElementById, waitForElementByXPath, waitForText, waitForText
 
Methods inherited from class net.sourceforge.jwebunit.junit.WebTestCase
assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCommentNotPresent, assertCommentPresent, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHeaderEquals, assertHeaderMatches, assertHeaderNotPresent, assertHeaderPresent, assertHiddenFieldPresent, assertImagePresent, assertImagePresentPartial, assertImageValid, assertImageValidAndStore, assertKeyInTable, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertKeysInTable, assertLabeledFieldEquals, assertLabelMatches, assertLabelPresent, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertMatch, assertMatch, assertMatch, assertMatchInElement, assertMatchInTable, assertMatchInTable, assertNoMatch, assertNoMatchInElement, assertNoMatchInTable, assertNoMatchInTable, assertNotMatch, assertNotMatch, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertResetButtonNotPresent, assertResetButtonNotPresent, assertResetButtonPresent, assertResetButtonPresent, assertResponseCode, assertResponseCodeBetween, assertSelectedOptionEquals, assertSelectedOptionEquals, assertSelectedOptionMatches, assertSelectedOptionMatches, assertSelectedOptionsEqual, assertSelectedOptionsEqual, assertSelectedOptionsMatch, assertSelectedOptionsMatch, assertSelectedOptionValueEquals, assertSelectedOptionValueEquals, assertSelectedOptionValuesEqual, assertSelectedOptionValuesEqual, assertSelectOptionNotPresent, assertSelectOptionNotPresent, assertSelectOptionPresent, assertSelectOptionPresent, assertSelectOptionsEqual, assertSelectOptionsEqual, assertSelectOptionsNotEqual, assertSelectOptionsNotEqual, assertSelectOptionsPresent, assertSelectOptionsPresent, assertSelectOptionValueNotPresent, assertSelectOptionValueNotPresent, assertSelectOptionValuePresent, assertSelectOptionValuePresent, assertSelectOptionValuesEqual, assertSelectOptionValuesEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesNotEqual, assertSelectOptionValuesPresent, assertSelectOptionValuesPresent, assertSubmitButtonNotPresent, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertSubmitButtonPresent, assertTableEquals, assertTableEquals, assertTableMatch, assertTableMatch, assertTableNotPresent, assertTablePresent, assertTableRowCountEquals, assertTableRowsEqual, assertTableRowsEqual, assertTableRowsMatch, assertTableRowsMatch, assertTextFieldEquals, assertTextInElement, assertTextInTable, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTextNotPresent, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleEqualsKey, assertTitleMatch, assertTitleNotEquals, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getAllHeaders, getComments, getDialog, getElementAttributByXPath, getElementAttributeByXPath, getElementById, getElementByXPath, getElementsByXPath, getElementTextByXPath, getFieldsForLabel, getFormElementValue, getHeader, getImage, getLabeledFieldValue, getMessage, getMessage, getPageSource, getResponseHeaders, getServerResponse, getServeurResponse, getTable, getTestContext, getTester, getTestingEngine, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, reset, runBare, saveAs, selectOption, selectOption, selectOptionByValue, selectOptionByValue, selectOptions, selectOptions, selectOptionsByValues, selectOptionsByValues, setBaseUrl, setBaseUrl, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setHiddenField, setIgnoreFailingStatusCodes, setLabeledFormElementField, setScriptingEnabled, setTestContext, setTestingEngineKey, setTextField, setTimeout, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox
 
Methods inherited from class junit.framework.TestCase
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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runTest, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RemoteCrowdDirectoryTest

public RemoteCrowdDirectoryTest()
Method Detail

setUp

public void setUp()
           throws Exception
Overrides:
setUp in class CrowdAcceptanceTestCase
Throws:
Exception

testBadClientParameters

public void testBadClientParameters()
                             throws UserNotFoundException,
                                    GroupNotFoundException
Throws:
UserNotFoundException
GroupNotFoundException

testConnection

public void testConnection()
                    throws OperationFailedException
Throws:
OperationFailedException

testInvalidConnections

public void testInvalidConnections()
                            throws OperationFailedException
Throws:
OperationFailedException

testFindUserByName

public void testFindUserByName()
                        throws Exception
Throws:
Exception

testFindUserWithSpacesInName

public void testFindUserWithSpacesInName()
                                  throws Exception
Throws:
Exception

testFindUserByNameNotFound

public void testFindUserByNameNotFound()
                                throws OperationFailedException
Throws:
OperationFailedException

testFindUserWithAttributesByName

public void testFindUserWithAttributesByName()
                                      throws Exception
Throws:
Exception

testFindUserWithAttributesByNameNotFound

public void testFindUserWithAttributesByNameNotFound()
                                              throws OperationFailedException
Throws:
OperationFailedException

testAddActiveUser

public void testAddActiveUser()
                       throws Exception
Throws:
Exception

testAddInactiveUser

public void testAddInactiveUser()
                         throws Exception
Throws:
Exception

testAddUserNoPassword

public void testAddUserNoPassword()
                           throws Exception
Throws:
Exception

testAddUserDuplicate

public void testAddUserDuplicate()
                          throws Exception
Throws:
Exception

testUpdateUser

public void testUpdateUser()
                    throws Exception
Throws:
Exception

testUpdateUserNotFound

public void testUpdateUserNotFound()
                            throws Exception
Throws:
Exception

testRemoveUser

public void testRemoveUser()
                    throws Exception
Throws:
Exception

testRemoveUserBadUser

public void testRemoveUserBadUser()
                           throws Exception
Throws:
Exception

testAuthenticate

public void testAuthenticate()
                      throws Exception
Throws:
Exception

testAuthenticateBadPassword

public void testAuthenticateBadPassword()
                                 throws Exception
Throws:
Exception

testAuthenticateNoUser

public void testAuthenticateNoUser()
                            throws Exception
Throws:
Exception

testUpdateUserPassword

public void testUpdateUserPassword()
                            throws Exception
Throws:
Exception

testStoreUserAttributes

public void testStoreUserAttributes()
                             throws Exception
Throws:
Exception

testStoreUserAttributesEmptySet

public void testStoreUserAttributesEmptySet()
                                     throws Exception
Throws:
Exception

testStoreUserAttributesBadUser

public void testStoreUserAttributesBadUser()
                                    throws OperationFailedException
Throws:
OperationFailedException

testRemoveUserAttributes

public void testRemoveUserAttributes()
                              throws Exception
Throws:
Exception

testRemoveUserAttributesBadUser

public void testRemoveUserAttributesBadUser()
                                     throws Exception
Throws:
Exception

testRemoveUserAttributesBadAttribute

public void testRemoveUserAttributesBadAttribute()
                                          throws Exception
Throws:
Exception

testFindGroupByName

public void testFindGroupByName()
                         throws Exception
Throws:
Exception

testFindGroupByNameNotFound

public void testFindGroupByNameNotFound()
                                 throws OperationFailedException
Throws:
OperationFailedException

testFindGroupWithAttributesByName

public void testFindGroupWithAttributesByName()
                                       throws Exception
Throws:
Exception

testFindGroupWithAttributesByNameNotFound

public void testFindGroupWithAttributesByNameNotFound()
                                               throws OperationFailedException
Throws:
OperationFailedException

testAddGroup

public void testAddGroup()
                  throws Exception
Throws:
Exception

testAddGroupDuplicate

public void testAddGroupDuplicate()
                           throws Exception
Throws:
Exception

testUpdateGroup

public void testUpdateGroup()
                     throws Exception
Throws:
Exception

testUpdateGroupNotFound

public void testUpdateGroupNotFound()
                             throws Exception
Throws:
Exception

testRemoveGroup

public void testRemoveGroup()
                     throws Exception
Throws:
Exception

testRemoveGroupBadGroup

public void testRemoveGroupBadGroup()
                             throws Exception
Throws:
Exception

testStoreGroupAttributes

public void testStoreGroupAttributes()
                              throws Exception
Throws:
Exception

testStoreGroupAttributesEmptySet

public void testStoreGroupAttributesEmptySet()
                                      throws Exception
Throws:
Exception

testStoreGroupAttributesBadGroup

public void testStoreGroupAttributesBadGroup()
                                      throws OperationFailedException
Throws:
OperationFailedException

testRemoveGroupAttributes

public void testRemoveGroupAttributes()
                               throws Exception
Throws:
Exception

testRemoveGroupAttributesBadGroup

public void testRemoveGroupAttributesBadGroup()
                                       throws Exception
Throws:
Exception

testRemoveGroupAttributesBadAttribute

public void testRemoveGroupAttributesBadAttribute()
                                           throws Exception
Throws:
Exception

testIsUserDirectMemberOfGroup

public void testIsUserDirectMemberOfGroup()
                                   throws OperationFailedException
Throws:
OperationFailedException

testAddUserToGroup

public void testAddUserToGroup()
                        throws Exception
Throws:
Exception

testAddUserToGroupDuplicate

public void testAddUserToGroupDuplicate()
                                 throws Exception
Throws:
Exception

testAddUserToGroupBadGroup

public void testAddUserToGroupBadGroup()
                                throws Exception
Throws:
Exception

testAddUserToGroupBadUser

public void testAddUserToGroupBadUser()
                               throws Exception
Throws:
Exception

testIsGroupDirectMemberOfGroup

public void testIsGroupDirectMemberOfGroup()
                                    throws OperationFailedException
Throws:
OperationFailedException

testAddGroupToGroup

public void testAddGroupToGroup()
                         throws Exception
Throws:
Exception

testAddGroupToGroupDuplicate

public void testAddGroupToGroupDuplicate()
                                  throws Exception
Throws:
Exception

testAddGroupToGroupBadParent

public void testAddGroupToGroupBadParent()
                                  throws Exception
Throws:
Exception

testAddGroupToGroupBadChild

public void testAddGroupToGroupBadChild()
                                 throws Exception
Throws:
Exception

testRemoveUserFromGroup

public void testRemoveUserFromGroup()
                             throws Exception
Throws:
Exception

testRemoveUserFromGroupBadUser

public void testRemoveUserFromGroupBadUser()
                                    throws Exception
Throws:
Exception

testRemoveUserFromGroupBadGroup

public void testRemoveUserFromGroupBadGroup()
                                     throws Exception
Throws:
Exception

testRemoveGroupFromGroup

public void testRemoveGroupFromGroup()
                              throws Exception
Throws:
Exception

testRemoveGroupFromGroupBadParent

public void testRemoveGroupFromGroupBadParent()
                                       throws Exception
Throws:
Exception

testRemoveGroupFromGroupBadChild

public void testRemoveGroupFromGroupBadChild()
                                      throws Exception
Throws:
Exception

testSearchAllUsers

public void testSearchAllUsers()
                        throws OperationFailedException
Throws:
OperationFailedException

testSearchAllUserNames

public void testSearchAllUserNames()
                            throws OperationFailedException
Throws:
OperationFailedException

testSearchUsers_EmailRestriction

public void testSearchUsers_EmailRestriction()
                                      throws OperationFailedException
Throws:
OperationFailedException

testSearchUsers_ActiveRestriction

public void testSearchUsers_ActiveRestriction()
                                       throws OperationFailedException
Throws:
OperationFailedException

testSearchUsers_InactiveRestriction

public void testSearchUsers_InactiveRestriction()
                                         throws OperationFailedException
Throws:
OperationFailedException

testSearchAllGroups

public void testSearchAllGroups()
                         throws OperationFailedException
Throws:
OperationFailedException

testSearchAllGroupNames

public void testSearchAllGroupNames()
                             throws OperationFailedException
Throws:
OperationFailedException

testSearchGroups_NameRestriction

public void testSearchGroups_NameRestriction()
                                      throws OperationFailedException
Throws:
OperationFailedException

testGetUserMembersOfGroup

public void testGetUserMembersOfGroup()
                               throws OperationFailedException
Throws:
OperationFailedException

testGetUserNameMembersOfGroup

public void testGetUserNameMembersOfGroup()
                                   throws OperationFailedException
Throws:
OperationFailedException

testGetGroupMembersOfGroup

public void testGetGroupMembersOfGroup()
                                throws OperationFailedException
Throws:
OperationFailedException

testGetGroupNameMembersOfGroup

public void testGetGroupNameMembersOfGroup()
                                    throws OperationFailedException
Throws:
OperationFailedException

testGroupMembershipsForUser

public void testGroupMembershipsForUser()
                                 throws OperationFailedException
Throws:
OperationFailedException

testGroupNameMembershipsForUser

public void testGroupNameMembershipsForUser()
                                     throws OperationFailedException
Throws:
OperationFailedException

testGroupMembershipsForGroup

public void testGroupMembershipsForGroup()
                                  throws OperationFailedException
Throws:
OperationFailedException

testGroupNameMembershipsForGroup

public void testGroupNameMembershipsForGroup()
                                      throws OperationFailedException
Throws:
OperationFailedException

testNestedGroupSupport

public void testNestedGroupSupport()


Copyright © 2014 Atlassian. All Rights Reserved.