com.atlassian.crowd.acceptance.tests.rest.service
Class GroupsResourceTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          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.rest.service.RestCrowdServiceAcceptanceTestCase
                      extended by com.atlassian.crowd.acceptance.tests.rest.service.GroupsResourceTest
All Implemented Interfaces:
junit.framework.Test

public class GroupsResourceTest
extends RestCrowdServiceAcceptanceTestCase


Field Summary
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
APPLICATION_PASSWORD, ATTRIBUTES_RESOURCE, AUTHENTICATION_RESOURCE, GROUPS_RESOURCE, MEMBERSHIPS_RESOURCE, REST_SERVICE_NAME, SESSION_RESOURCE, USERS_RESOURCE
 
Fields inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, CONSOLE_PORT, CONTEXT_PATH, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WAR_PATH, WORKGROUP_LICENSE_KEY
 
Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
tester
 
Constructor Summary
GroupsResourceTest()
           
 
Method Summary
 void testAddDirectChildGroup_NoChild()
          Tests adding a direct child group membership with non-existing child group.
 void testAddDirectChildGroup_NoGroup()
          Tests adding a direct child group membership with non-existing group.
 void testAddDirectChildGroup_NoNestedGroups()
          Tests adding a direct child group membership with nested groups disabled.
 void testAddDirectChildGroup()
          Tests adding a direct child group membership.
 void testAddDirectParentGroup_NoGroup()
          Tests adding a direct parent group membership with non-existing group.
 void testAddDirectParentGroup_NoParent()
          Tests adding a direct parent group membership with non-existing parent group.
 void testAddDirectParentGroup()
          Tests adding a direct parent group membership.
 void testAddDirectUser_NoGroup()
           
 void testAddDirectUser_NoUser()
           
 void testAddDirectUser()
           
 void testAddGroup()
           
 void testDeleteDirectChildGroup_NoChild()
          Tests deleting a child group membership when the child does not exist.
 void testDeleteDirectChildGroup_NoParent()
          Tests deleting a child group membership when the parent does not exist.
 void testDeleteDirectChildGroup()
          Tests deleting a child group membership.
 void testDeleteDirectUser()
           
 void testDeleteGroup()
           
 void testDeleteGroupAttribute()
           
 void testGetDirectChildGroups_Expanded()
          Tests get group members of a group.
 void testGetDirectChildGroups_Group()
          Tests retrieving the group that is a direct child of the specified group.
 void testGetDirectChildGroups()
          Tests get group members of a group.
 void testGetDirectParentGroups_Expanded()
          Tests get user group memberships.
 void testGetDirectParentGroups()
          Tests get user group memberships.
 void testGetDirectUsers_Expanded()
          Tests retrieving the users that are direct members of the specified group.
 void testGetDirectUsers_Limit1()
          Tests get user members of a group.
 void testGetDirectUsers_Limit2()
          Tests get user members of a group.
 void testGetDirectUsers_User()
          Tests get user members of a group.
 void testGetDirectUsers()
          Tests get usernames of a group.
 void testGetGroup_DoesNotExist()
           
 void testGetGroup_Expanded()
           
 void testGetGroup()
           
 void testGetNestedChildGroups_Expanded()
          Tests get group members of a group.
 void testGetNestedChildGroups()
          Tests get group members of a group.
 void testGetNestedParentGroups_Expanded()
          Tests get user group memberships.
 void testGetNestedParentGroups_Group()
           
 void testGetNestedParentGroups_NoGroup()
           
 void testGetNestedParentGroups()
          Tests get user group memberships.
 void testGetNestedUsers_Expanded()
          Tests get user members of a group.
 void testGetNestedUsers_NoUser()
           
 void testGetNestedUsers_User()
           
 void testGetNestedUsers()
          Tests get user members of a group.
 void testStoreGroupAttributes()
           
 void testUpdateGroup_BadDetails()
           
 void testUpdateGroup()
           
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.rest.service.RestCrowdServiceAcceptanceTestCase
getBaseUriBuilder, getRootWebResource, getWebResource, setUp, statusToString
 
Methods inherited from class com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase
_getTestProperty, _loginAdminUser, _loginAsUser, _logout, addRole, assertUserInTable, assertUserInTable, assertUserNotInTable, getBaseUrl, getCrowdApplicationPassword, getCrowdContext, getCrowdHome, getText, gotoAddApplication, gotoAddGroup, gotoAddPrincipal, gotoAddRole, gotoBackup, gotoBrowseApplications, gotoBrowseDirectories, gotoBrowseGroups, gotoBrowseGroups, gotoBrowsePrincipals, gotoBrowsePrincipals, gotoBrowseRoles, gotoCreateDirectory, gotoCurrentApplicationSessions, gotoCurrentPrincipalSessions, gotoGeneral, gotoImporters, gotoLdapConnectionPool, gotoLicensing, gotoLoggingProfiling, gotoMailServer, gotoMailTemplate, gotoRemovePrincipal, gotoRestore, gotoSAMLConfig, gotoSessionConfig, gotoSystemInfo, gotoTrustedProxies, gotoViewApplication, gotoViewGroup, gotoViewPrincipal, gotoViewRole, log, restoreBaseSetup, restoreCrowdFromXML, restoreCrowdFromXMLWithoutReloggingIn, restoreCrowdFromXMLWithoutReloggingIn, tearDown
 
Methods inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
addRequestHeader, assertButtonNotPresent, assertButtonNotPresentWithText, assertButtonPresent, assertButtonPresentWithText, assertCheckboxNotPresent, assertCheckboxNotPresent, assertCheckboxNotSelected, assertCheckboxNotSelected, assertCheckboxPresent, assertCheckboxPresent, assertCheckboxSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertCookieValueMatch, assertDownloadedFileEquals, assertElementNotPresent, assertElementNotPresentByXPath, assertElementPresent, assertElementPresentByXPath, assertErrorNotPresent, assertErrorPresent, assertErrorPresentWithKey, assertErrorPresentWithText, assertFormElementEmpty, assertFormElementEquals, assertFormElementMatch, assertFormElementNotPresent, assertFormElementPresent, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertHiddenFieldPresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeyPresent, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithExactText, assertLinkNotPresentWithExactText, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, assertLinkPresentWithImage, assertLinkPresentWithKey, assertLinkPresentWithText, 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, assertServerResponseContains, assertServerResponseDoesNotContain, 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, assertTextPresent, assertTitleEquals, assertTitleEqualsKey, assertTitleMatch, assertWarningAndErrorNotPresent, assertWarningNotPresent, assertWarningPresent, assertWarningPresentWithKey, assertWarningPresentWithText, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, clickLinkWithImage, clickLinkWithKey, clickLinkWithText, clickLinkWithText, clickRadioOption, closeBrowser, closeWindow, dumpCookies, dumpHtml, dumpHtml, dumpTable, dumpTable, getDialog, getElementAttributeByXPath, getElementTextById, getElementTextByXPath, getFormElementValue, getMessage, getPageSource, getPageText, getServerResponse, getTable, getTestContext, getTester, getTestingEngineKey, gotoFrame, gotoPage, gotoRootWindow, gotoWindow, gotoWindow, gotoWindowByTitle, isTextPresent, reset, runBare, saveAs, selectOption, selectOptionByValue, selectOptions, selectOptionsByValues, setDialog, setExpectedJavaScriptAlert, setExpectedJavaScriptAlert, setExpectedJavaScriptConfirm, setExpectedJavaScriptConfirm, setExpectedJavaScriptPrompt, setExpectedJavaScriptPrompt, setFormElement, setRadioButton, setScriptingEnabled, setTestContext, setTester, setTestingEngineKey, setTextField, setWorkingForm, setWorkingForm, setWorkingForm, submit, submit, submit, uncheckCheckbox, uncheckCheckbox, waitForText, waitForText
 
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

GroupsResourceTest

public GroupsResourceTest()
Method Detail

testGetGroup

public void testGetGroup()

testGetGroup_Expanded

public void testGetGroup_Expanded()

testGetGroup_DoesNotExist

public void testGetGroup_DoesNotExist()

testAddGroup

public void testAddGroup()

testUpdateGroup

public void testUpdateGroup()

testUpdateGroup_BadDetails

public void testUpdateGroup_BadDetails()

testDeleteGroup

public void testDeleteGroup()

testStoreGroupAttributes

public void testStoreGroupAttributes()

testDeleteGroupAttribute

public void testDeleteGroupAttribute()

testGetDirectUsers

public void testGetDirectUsers()
Tests get usernames of a group.


testGetDirectUsers_Limit1

public void testGetDirectUsers_Limit1()
Tests get user members of a group.


testGetDirectUsers_Limit2

public void testGetDirectUsers_Limit2()
Tests get user members of a group.


testGetDirectUsers_Expanded

public void testGetDirectUsers_Expanded()
Tests retrieving the users that are direct members of the specified group.


testAddDirectUser

public void testAddDirectUser()

testAddDirectUser_NoUser

public void testAddDirectUser_NoUser()

testAddDirectUser_NoGroup

public void testAddDirectUser_NoGroup()

testGetDirectUsers_User

public void testGetDirectUsers_User()
Tests get user members of a group.


testDeleteDirectUser

public void testDeleteDirectUser()

testGetNestedUsers

public void testGetNestedUsers()
Tests get user members of a group.


testGetNestedUsers_Expanded

public void testGetNestedUsers_Expanded()
Tests get user members of a group.


testGetNestedUsers_User

public void testGetNestedUsers_User()

testGetNestedUsers_NoUser

public void testGetNestedUsers_NoUser()

testGetDirectParentGroups

public void testGetDirectParentGroups()
Tests get user group memberships.


testGetDirectParentGroups_Expanded

public void testGetDirectParentGroups_Expanded()
Tests get user group memberships.


testAddDirectParentGroup

public void testAddDirectParentGroup()
Tests adding a direct parent group membership.


testAddDirectParentGroup_NoGroup

public void testAddDirectParentGroup_NoGroup()
Tests adding a direct parent group membership with non-existing group.


testAddDirectParentGroup_NoParent

public void testAddDirectParentGroup_NoParent()
Tests adding a direct parent group membership with non-existing parent group.


testGetNestedParentGroups

public void testGetNestedParentGroups()
Tests get user group memberships.


testGetNestedParentGroups_Expanded

public void testGetNestedParentGroups_Expanded()
Tests get user group memberships.


testGetNestedParentGroups_Group

public void testGetNestedParentGroups_Group()

testGetNestedParentGroups_NoGroup

public void testGetNestedParentGroups_NoGroup()

testGetDirectChildGroups

public void testGetDirectChildGroups()
Tests get group members of a group.


testGetDirectChildGroups_Expanded

public void testGetDirectChildGroups_Expanded()
Tests get group members of a group.


testAddDirectChildGroup

public void testAddDirectChildGroup()
Tests adding a direct child group membership.


testAddDirectChildGroup_NoGroup

public void testAddDirectChildGroup_NoGroup()
Tests adding a direct child group membership with non-existing group.


testAddDirectChildGroup_NoChild

public void testAddDirectChildGroup_NoChild()
Tests adding a direct child group membership with non-existing child group.


testAddDirectChildGroup_NoNestedGroups

public void testAddDirectChildGroup_NoNestedGroups()
Tests adding a direct child group membership with nested groups disabled.


testGetDirectChildGroups_Group

public void testGetDirectChildGroups_Group()
Tests retrieving the group that is a direct child of the specified group.


testDeleteDirectChildGroup

public void testDeleteDirectChildGroup()
Tests deleting a child group membership.


testDeleteDirectChildGroup_NoParent

public void testDeleteDirectChildGroup_NoParent()
Tests deleting a child group membership when the parent does not exist.


testDeleteDirectChildGroup_NoChild

public void testDeleteDirectChildGroup_NoChild()
Tests deleting a child group membership when the child does not exist.


testGetNestedChildGroups

public void testGetNestedChildGroups()
Tests get group members of a group.


testGetNestedChildGroups_Expanded

public void testGetNestedChildGroups_Expanded()
Tests get group members of a group.



Copyright © 2010 Atlassian. All Rights Reserved.