Merged 5.2.N (5.2.1) to HEAD (5.2)

129893 jvonka: REPO-1090: fix regress (V1 REST API - list children within the context of a smart folder)
   - follow-on (re: NodeApiTest.getChildrenAssocType fallout - when returning any assoc, not just cm:contains)


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@130238 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-09-06 14:44:39 +00:00
parent a98859b185
commit 772d2ffd57
3 changed files with 14 additions and 1 deletions

View File

@@ -2124,6 +2124,10 @@ public class NodeApiTest extends AbstractSingleNetworkSiteTest
String c1Id = nodeResp.getId();
assertEquals(fId, nodeResp.getParentId());
response = getAll(getNodeChildrenUrl(fId), null, null, 200);
nodes = RestApiUtil.parseRestApiEntries(response.getJsonResponse(), Node.class);
assertEquals(1, nodes.size());
obj = new Node();
obj.setName("c2");
obj.setNodeType(TYPE_CM_CONTENT);