|
||||||||||
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 com.atlassian.confluence.ThreadLocalWebTestCase com.atlassian.confluence.AbstractAtlassianWebTestCase com.atlassian.confluence.AbstractConfluenceAcceptanceTest com.atlassian.confluence.AbstractPermissionsAcceptanceTest com.atlassian.confluence.EditSpacePermissionsAcceptanceTest
public class EditSpacePermissionsAcceptanceTest
Tests adding and removing various permissions in the Edit Space Permissions screen. May have a bit of overlap with the classes that Test the effectiveness of the permissions.
SpaceAdminPermissionsAcceptanceTest
,
SpacePermissionsAcceptanceTest
Field Summary |
---|
Fields inherited from class com.atlassian.confluence.AbstractAtlassianWebTestCase |
---|
SITE_TITLE_SUFFIX, TITLE_SEPARATOR |
Constructor Summary | |
---|---|
EditSpacePermissionsAcceptanceTest()
|
Method Summary | |
---|---|
void |
runBare()
Clean up unused memory. |
void |
setUp()
|
void |
testAddPermissionsWhenLastAdminPermissionRemoved()
This was meant to be a test for CONF-5453 but it didn't work because the bug isn't that simple. |
void |
testAddPermissionsWhenLastAdminUserRemoved()
This was meant to be a test for CONF-5453 but it didn't work because the standard removeUserViaHelper method does all the right things that stop the bug from occurring. |
void |
testAddPermissionsWhenLastAdminUserUncleanlyRemoved()
Test for CONF-5453 by removing just the administrating test user without removing their permissions. |
void |
testCanGiveGroupAdministerSpacePermission()
|
void |
testCanGiveUserAdministerSpacePermission()
|
void |
testCannotRemoveLastAdministerSpacePermission()
|
void |
testCanRemoveGroupAdministerSpacePermission()
|
void |
testCanRemoveUserAdministerSpacePermission()
|
void |
testGrantPermissionToWronglyCasedTestUser()
Tests the behaviour when a user attempts to create a space permission for a user but types in the wrong case for the username. |
void |
testInterleavedPermissionChanges()
Test that two users can edit the space permissions of a page and not break each other's unrelated changes. |
void |
testRemoveAllAdminsAndAddNewAdminInOneEdit()
|
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 |
---|
public EditSpacePermissionsAcceptanceTest()
Method Detail |
---|
public void runBare() throws java.lang.Throwable
ThreadLocalWebTestCase
runBare
in class ThreadLocalWebTestCase
java.lang.Throwable
public void setUp() throws java.lang.Exception
setUp
in class AbstractConfluenceAcceptanceTest
java.lang.Exception
public void testCanGiveUserAdministerSpacePermission() throws java.lang.Exception
java.lang.Exception
public void testCanGiveGroupAdministerSpacePermission() throws java.lang.Exception
java.lang.Exception
public void testCanRemoveUserAdministerSpacePermission() throws java.lang.Exception
java.lang.Exception
public void testCanRemoveGroupAdministerSpacePermission() throws java.lang.Exception
java.lang.Exception
public void testCannotRemoveLastAdministerSpacePermission()
public void testInterleavedPermissionChanges() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testAddPermissionsWhenLastAdminUserUncleanlyRemoved() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testAddPermissionsWhenLastAdminUserRemoved() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testAddPermissionsWhenLastAdminPermissionRemoved() throws java.io.IOException, org.apache.xmlrpc.XmlRpcException
java.io.IOException
org.apache.xmlrpc.XmlRpcException
public void testGrantPermissionToWronglyCasedTestUser()
public void testRemoveAllAdminsAndAddNewAdminInOneEdit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |