aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/test/java')
-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 {