Build fix for TaggingServiceTest

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29903 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Gavin Cornwell
2011-08-19 09:01:47 +00:00
parent b36edc807a
commit f965894509

View File

@@ -141,18 +141,21 @@ public class TaggingServiceTest extends BaseWebScriptTest
Response response = sendRequest(new GetRequest("/api/tags/" + StoreRef.PROTOCOL_WORKSPACE + "/SpacesStore"), 200);
JSONArray jsonArray = new JSONArray(response.getContentAsString());
// make sure there are results
assertNotNull(jsonArray);
//assertEquals(5, jsonArray.length());
assertTrue(jsonArray.length() > 0);
response = sendRequest(new GetRequest("/api/tags/" + StoreRef.PROTOCOL_WORKSPACE + "/SpacesStore?tf=one"), 200);
jsonArray = new JSONArray(response.getContentAsString());
// make sure there are results
assertNotNull(jsonArray);
assertEquals(1, jsonArray.length());
assertTrue(jsonArray.length() > 0);
response = sendRequest(new GetRequest("/api/tags/" + StoreRef.PROTOCOL_WORKSPACE + "/SpacesStore?tf=none"), 200);
jsonArray = new JSONArray(response.getContentAsString());
// make sure there are no results
assertNotNull(jsonArray);
assertEquals(0, jsonArray.length());
}