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

128364 adavis: Merged 5.1.N (5.1.2) to 5.2.N (5.2.1)
      128357 jvonka: MNT-16446: Edit Comment permission (part 2b) 
      - follow-on to fix test fallout
      - for v1 api


git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@128729 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Jan Vonka
2016-07-12 12:00:09 +00:00
parent 6bbb3e3d11
commit a14d7cb610

View File

@@ -817,12 +817,21 @@ public class TestNodeComments extends EnterpriseTestApi
return null;
}
}, person11.getId(), network1.getId());
publicApiClient.setRequestContext(new RequestContext(network1.getId(), person11.getId()));
try
{
publicApiClient.setRequestContext(new RequestContext(network1.getId(), person11.getId()));
Comment updatedComment = new Comment();
updatedComment.setContent("my comment");
commentsProxy.updateNodeComment(nodeRef1.getId(), createdComment.getId(), updatedComment);
Comment updatedComment = new Comment();
updatedComment.setContent("my comment");
commentsProxy.updateNodeComment(nodeRef1.getId(), createdComment.getId(), updatedComment);
fail("");
}
catch(PublicApiException e)
{
assertEquals(HttpStatus.SC_FORBIDDEN, e.getHttpResponse().getStatusCode());
}
}
}
finally