Build fix

- Corrected lookup of root groups
- Improved root group search in the process
- Spent ages trying to work out why GROUP_BUFFY wasn't being deleted!

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@19210 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Dave Ward
2010-03-11 09:58:47 +00:00
parent 80f8089934
commit f79c5c64d4

View File

@@ -568,7 +568,7 @@ public class GroupsTest extends BaseWebScriptTest
String myNewGroup = "GROUP_BUFFY"; String myNewGroup = "GROUP_BUFFY";
{ {
// Delete incase it already exists from a previous test run // Delete incase it already exists from a previous test run
sendRequest(new DeleteRequest(URL_ROOTGROUPS + "/" + myNewGroup), 0); sendRequest(new DeleteRequest(URL_ROOTGROUPS + "/BUFFY"), 0);
JSONObject newGroupJSON = new JSONObject(); JSONObject newGroupJSON = new JSONObject();
Response response = sendRequest(new PostRequest(URL_GROUPS + "/" + myRootGroup +"/children/" + myNewGroup, newGroupJSON.toString(), "application/json" ), Status.STATUS_CREATED); Response response = sendRequest(new PostRequest(URL_GROUPS + "/" + myRootGroup +"/children/" + myNewGroup, newGroupJSON.toString(), "application/json" ), Status.STATUS_CREATED);