diff options
author | Vitaly Takmazov | 2018-05-27 22:46:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-05-27 22:46:08 +0300 |
commit | 4080ecbdb18bf67275317bdcfa5bcc52d3ac94e4 (patch) | |
tree | f862479b9a0a3424193c01a593f80c673902641f /juick-server/src/test/java | |
parent | 15c52d91884988dc3c714739f901b510eb6ffc56 (diff) |
Refactor tag parsing
Diffstat (limited to 'juick-server/src/test/java')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 5 |
1 files changed, 5 insertions, 0 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 9a78eac9..292020d6 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 @@ -809,6 +809,11 @@ public class ServerTests { assertFalse(result.getNewMessage().get().getText().contains("VTYZkKV8FWkmu6g1")); result = commandsManager.processCommand(user, "*корм *juick_ppl *рационализм *? *мюсли а сколько микроморт в дневной порции сверхмюслей?", emptyUri); assertTrue(result.getNewMessage().isPresent()); + String tags = "*Juick *Google *Google Play"; + String data = "Вчера отправлял *NSFW постинг в топ :)"; + result = commandsManager.processCommand(user, String.format("%s %s", tags, data), emptyUri); + assertThat(result.getNewMessage().get().getTags().size(), equalTo(3)); + assertThat(result.getNewMessage().get().getText(), equalTo(data)); } @Test public void mailParserTest() throws Exception { |