1
0
mirror of https://github.com/sismics/docs.git synced 2025-12-16 03:06:22 +00:00

Closes #44: Comments visible from share app

+ metadata-complete="true" in web.xml to skip annotations scanning
(second try with Jetty 9)
This commit is contained in:
jendib
2015-11-21 20:31:21 +01:00
parent 1c7381376c
commit 7e5aa9aecf
11 changed files with 61 additions and 30 deletions

View File

@@ -78,6 +78,14 @@ public class TestShareResource extends BaseJerseyTest {
Assert.assertEquals(document1Id, json.getString("id"));
Assert.assertEquals(3, json.getJsonArray("acls").size()); // 2 for the creator, 1 for the share
// Get all comments from this document anonymously
json = target().path("/comment/" + document1Id)
.queryParam("share", share1Id)
.request()
.get(JsonObject.class);
JsonArray comments = json.getJsonArray("comments");
Assert.assertEquals(0, comments.size());
// Get all files from this document anonymously
json = target().path("/file/list")
.queryParam("id", document1Id)