aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick/server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-06-18 21:38:01 +0300
committerGravatar Vitaly Takmazov2018-06-18 21:38:01 +0300
commit08afd2fc05170f5f3240c3f383174ebd525d876f (patch)
tree4eb204b629e269d07835ca2526b3c088da8bea93 /juick-server/src/test/java/com/juick/server
parent095cbbffde0c73df0a9c1562e30a1d76436195d3 (diff)
api: recommendations list
Diffstat (limited to 'juick-server/src/test/java/com/juick/server')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index 88ce5cf3..0df39eb6 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -867,7 +867,10 @@ public class ServerTests {
mockMvc.perform(post("/like?mid=" + mid + "&hash=" + freefdHash))
.andExpect(status().isOk())
.andExpect(jsonPath("$.status", is("Message is added to your recommendations")));
-
+ mockMvc.perform(get("/thread?mid=" + mid + "&hash=" + freefdHash))
+ .andExpect(status().isOk())
+ .andExpect(jsonPath("$[0].recommendations.length()", is(1)))
+ .andExpect(jsonPath("$[0].recommendations[0]", is(freefdName)));
mockMvc.perform(post("/like?mid=" + freefdMid + "&hash=" + freefdHash))
.andExpect(status().isForbidden());
}