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/BRANCHES/DEV/5.2.N/root@128364 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Alan Davis
2016-06-27 07:06:02 +00:00
parent b16c2b27c1
commit f36819319a

View File

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