From 933e5702864d0babcd9f8cbc1791078f387b24c7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 25 Sep 2018 09:28:30 +0300 Subject: distinct tags in new message --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'juick-server/src/test/java/com/juick/server') 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 75024029..c4915acf 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 @@ -1690,4 +1690,10 @@ public class ServerTests { writer.write(result.getResponse().getContentAsString()); writer.flush(); } + @Test + public void newMessageShouldNotContainDuplicatedTags() throws Exception { + CommandResult result = commandsManager.processCommand(ugnich, "*test *test test", emptyUri); + assertThat(result.getNewMessage().isPresent(), is(true)); + assertThat(result.getNewMessage().get().getTags().size(), is (1)); + } } -- cgit v1.2.3