|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.framework.Assert junit.framework.TestCase net.sourceforge.jwebunit.junit.WebTestCase com.atlassian.crowd.acceptance.utils.CrowdWebTestCase com.atlassian.crowd.acceptance.tests.applications.crowd.CrowdAcceptanceTestCase com.atlassian.crowd.acceptance.tests.client.NestedGroupsBase
public abstract class NestedGroupsBase
Field Summary | |
---|---|
protected SecurityServerClient |
securityServerClient
|
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 net.sourceforge.jwebunit.junit.WebTestCase |
---|
customTester, tester |
Constructor Summary | |
---|---|
NestedGroupsBase()
|
Method Summary | |
---|---|
abstract Collection |
getAllGroupNames()
|
abstract Collection |
getGroupsForUser(String userName)
|
abstract Collection |
getUsersInGroup(String groupName)
|
abstract boolean |
isGroupInList(Collection groupList,
String groupName)
Checks if a group specified by groupName is in groupList . |
abstract boolean |
isInGroup(String userName,
String groupName)
|
abstract boolean |
isUserInList(Collection userList,
String userName)
|
abstract boolean |
removeUserFromGroup(String userName,
String groupName)
|
void |
setUp()
|
protected abstract void |
setupClientLibrary()
Overridden to set up the interface object(s). |
protected void |
setupSecurityServer()
Sets the connection details & auths the app. |
void |
tearDown()
|
void |
testInGroup_UserInParentGroup()
|
void |
testInGroup_UserInSubGroup()
|
void |
testInGroup_UserNotInGroup()
|
void |
testInGroup()
|
void |
testRemoveFromGroup_MemberOfGroup()
|
void |
testRemoveFromGroup_MemberOfSubGroup()
Removing SUB_USER_NAME from GROUP_NAME should fail as the user is not a direct member. |
void |
testRemoveFromGroup_SubMemberOfSubGroup()
|
void |
testUsersByGroupMatchesGroupsByUser()
In OSUser: Checks that the data returned from com.opensymphony.user.provider.listGroupsContainingUser() and com.opensymphony.user.providerlistUsersInGroup() is consistent. |
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, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithExactText, assertLinkPresentWithExactText, 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, assertTitleNotSame, assertWindowCountEquals, assertWindowPresent, assertWindowPresent, assertWindowPresentWithTitle, beginAt, checkCheckbox, checkCheckbox, clickButton, clickButtonWithText, clickElementByXPath, clickLink, clickLinkWithExactText, clickLinkWithExactText, 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, 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 |
---|
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 |
Field Detail |
---|
protected SecurityServerClient securityServerClient
Constructor Detail |
---|
public NestedGroupsBase()
Method Detail |
---|
protected void setupSecurityServer() throws Exception
Exception
protected abstract void setupClientLibrary() throws Exception
Exception
public void setUp() throws Exception
setUp
in class CrowdAcceptanceTestCase
Exception
public void tearDown() throws Exception
tearDown
in class CrowdAcceptanceTestCase
Exception
public void testUsersByGroupMatchesGroupsByUser() throws Exception
Exception
public void testRemoveFromGroup_MemberOfSubGroup() throws Exception
Exception
public void testRemoveFromGroup_MemberOfGroup() throws Exception
Exception
public void testRemoveFromGroup_SubMemberOfSubGroup() throws Exception
Exception
public void testInGroup() throws Exception
Exception
public void testInGroup_UserInSubGroup() throws Exception
Exception
public void testInGroup_UserInParentGroup() throws Exception
Exception
public void testInGroup_UserNotInGroup() throws Exception
Exception
public abstract Collection getAllGroupNames() throws Exception
Exception
public abstract Collection getUsersInGroup(String groupName) throws Exception
Exception
public abstract Collection getGroupsForUser(String userName) throws Exception
Exception
public abstract boolean isInGroup(String userName, String groupName) throws Exception
Exception
public abstract boolean removeUserFromGroup(String userName, String groupName) throws Exception
Exception
public abstract boolean isGroupInList(Collection groupList, String groupName) throws Exception
groupName
is in groupList
. Not all interfaces return
a Collection of Strings, so we may need interface-specific comparison ops. For example, atlassian-user returns
a List
groupList
- A list of groups as returned to the application using the interfacegroupName
- The name of a group
Exception
public abstract boolean isUserInList(Collection userList, String userName) throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |