aboutsummaryrefslogtreecommitdiff
path: root/juick-server
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-27 22:46:08 +0300
committerGravatar Vitaly Takmazov2018-05-27 22:46:08 +0300
commit4080ecbdb18bf67275317bdcfa5bcc52d3ac94e4 (patch)
treef862479b9a0a3424193c01a593f80c673902641f /juick-server
parent15c52d91884988dc3c714739f901b510eb6ffc56 (diff)
Refactor tag parsing
Diffstat (limited to 'juick-server')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java5
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 {