aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/test/java/com/juick/server/tests')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java6
1 files changed, 6 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 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));
+ }
}