diff options
author | Vitaly Takmazov | 2018-05-21 15:50:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-21 16:09:14 +0300 |
commit | c7c2b377642a337edc303756836c9f0843cdc145 (patch) | |
tree | 846b6bfc126d6a3451597a0ca3c1110088347684 /juick-server/src/test | |
parent | 1179cdc5ba750c87783e442afeb202026ddd458d (diff) |
juick.com/m/ links
Diffstat (limited to 'juick-server/src/test')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 8 |
1 files changed, 4 insertions, 4 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 9a78b0a2..41f2b68c 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 @@ -545,8 +545,8 @@ public class ServerTests { } @Test public void tg2juickLinks() { - UriComponents uriComponents = UriComponentsBuilder.fromUriString("http://juick.com/123456#23").build(); - assertThat(uriComponents.getPath().substring(1), is("123456")); + UriComponents uriComponents = UriComponentsBuilder.fromUriString("http://juick.com/m/123456#23").build(); + assertThat(uriComponents.getPath().substring(3), is("123456")); assertThat(uriComponents.getFragment(), is("23")); } @Test @@ -713,9 +713,9 @@ public class ServerTests { assertEquals("number of reader users should match", 1, userService.getUserReaders(uid).size()); String expectedSecondReply = "Reply posted.\n#" + mid + "/2 " - + "https://juick.com/" + mid + "#2"; + + "https://juick.com/m/" + mid + "#2"; String expectedThirdReply = "Reply posted.\n#" + mid + "/3 " - + "https://juick.com/" + mid + "#3"; + + "https://juick.com/m/" + mid + "#3"; assertEquals("should be second reply", expectedSecondReply, commandsManager.processCommand(user, "#" + mid + " yoyo", URI.create("http://static.juick.com/settings/facebook.png")).getText()); assertEquals("should be third reply", expectedThirdReply, |