diff options
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 236c113b..a892bcf4 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2764,4 +2764,8 @@ public class ServerTests { assertThat(messagesService.getMessages(ugnich, List.of(mid)).size(), is(1)); assertThat(messagesService.getMessages(ugnich, List.of(mid)).get(0).isUnread(), is(false)); } + @Test + public void shareUrlShouldRedirectToPost() throws Exception { + mockMvc.perform(get("/share?text=Hello\nWorld")).andExpect(redirectedUrl("/post?body=Hello%0AWorld")); + } } |