Merged HEAD-BUG-FIX (5.0/Cloud) to HEAD (5.0/Cloud)

84925: Merged PLATFORM1 (5.0/Cloud) to HEAD-BUG-FIX (5.0/Cloud)
      83487: Build fix. Related to ACE-2639.


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@85242 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Mark Rogers
2014-09-20 09:12:34 +00:00
parent 22e9af3abc
commit 05c1bb9d58

View File

@@ -636,7 +636,8 @@ public class FacetRestApiTest extends BaseWebScriptTest
// *some* facetable properties.
JSONObject jsonRsp = new JSONObject(new JSONTokener(rsp.getContentAsString()));
JSONObject properties = jsonRsp.getJSONObject(FacetablePropertiesGet.PROPERTIES_KEY);
JSONObject data = jsonRsp.getJSONObject("data");
JSONArray properties = data.getJSONArray(FacetablePropertiesGet.PROPERTIES_KEY);
final int arbitraryLimit = 25;
assertTrue("Expected 'many' properties, but found 'not very many'", properties.length() > arbitraryLimit);
@@ -659,7 +660,8 @@ public class FacetRestApiTest extends BaseWebScriptTest
// *some* facetable properties.
JSONObject jsonRsp = new JSONObject(new JSONTokener(rsp.getContentAsString()));
JSONObject properties = jsonRsp.getJSONObject(FacetablePropertiesGet.PROPERTIES_KEY);
JSONObject data = jsonRsp.getJSONObject("data");
JSONArray properties = data.getJSONArray(FacetablePropertiesGet.PROPERTIES_KEY);
final int arbitraryLimit = 100;
assertTrue("Expected 'not very many' properties, but found 'many'", properties.length() < arbitraryLimit);