aboutsummaryrefslogtreecommitdiff
path: root/juick-www
diff options
context:
space:
mode:
Diffstat (limited to 'juick-www')
-rw-r--r--juick-www/src/test/java/com/juick/WebAppTests.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/juick-www/src/test/java/com/juick/WebAppTests.java b/juick-www/src/test/java/com/juick/WebAppTests.java
index 48b8c5ef..e9908acd 100644
--- a/juick-www/src/test/java/com/juick/WebAppTests.java
+++ b/juick-www/src/test/java/com/juick/WebAppTests.java
@@ -246,9 +246,12 @@ public class WebAppTests {
mockMvc.perform(post("/post")
.cookie(loginResult.getResponse().getCookies())
.param("wrong_param", "yo")).andExpect(status().isBadRequest());
+ String msgText = "yoppppl";
mockMvc.perform(post("/post")
.cookie(loginResult.getResponse().getCookies())
- .param("body", "yo")).andExpect(status().isOk());
+ .param("body", msgText)).andExpect(status().isOk());
+ Message lastMessage = messagesService.getMessage(messagesService.getMyFeed(ugnich.getUid(), 0, false).get(0));
+ assertThat(lastMessage.getText(), equalTo(msgText));
mockMvc.perform(post("/post")
.cookie(loginResult.getResponse().getCookies())
.param("img", "http://static.juick.com/settings/facebook.png")).andExpect(status().isOk());