diff options
author | Vitaly Takmazov | 2018-03-28 23:49:33 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-03-28 23:49:33 +0300 |
commit | a0faa305739fdae086ee83a775423e91c90a4ffb (patch) | |
tree | c87c5bd92bac82922a7366b4a0969307b0a97db0 /juick-server/src/test/java/com | |
parent | 024533a558e4827564041bdf5040e51370eece80 (diff) |
server: /like API not using XMPP
Diffstat (limited to 'juick-server/src/test/java/com')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 3 |
1 files changed, 2 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 c9556a98..d3dc7b58 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 @@ -660,7 +660,8 @@ public class ServerTests { String freefdHash = userService.getHashByUID(freefd.getUid()); int freefdMid = messagesService.createMessage(freefd.getUid(), "to be not liked", null, null); mockMvc.perform(post("/like?mid=" + mid + "&hash=" + freefdHash)) - .andExpect(status().isOk()); + .andExpect(status().isOk()) + .andExpect(jsonPath("$.status", is("Message is added to your recommendations"))); mockMvc.perform(post("/like?mid=" + freefdMid + "&hash=" + freefdHash)) .andExpect(status().isForbidden()); } |