From 03a03639514bfb586555a3367fd3ea58da0f2a94 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 19 Dec 2016 23:39:25 +0300 Subject: juick-server: fix tags in getSubscribedUsers --- src/test/java/com/juick/tests/ApiTests.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test/java/com') diff --git a/src/test/java/com/juick/tests/ApiTests.java b/src/test/java/com/juick/tests/ApiTests.java index 931838d7..6a945d4a 100644 --- a/src/test/java/com/juick/tests/ApiTests.java +++ b/src/test/java/com/juick/tests/ApiTests.java @@ -226,6 +226,10 @@ public class ApiTests { juickProtocol.getReply(user, "#" + mid + " *there").getResult()); assertEquals("number of tags should match", 2, tagService.getMessageTags(mid).size()); + assertEquals("should be blacklisted", "Tag added to your blacklist", + juickProtocol.getReply(readerUser, "BL *there").getResult()); + assertEquals("number of subscribed users should match", 0, + subscriptionService.getSubscribedUsers(uid, mid).size()); assertEquals("tags should be updated", "Tags are updated", juickProtocol.getReply(user, "#" + mid + " *there").getResult()); assertEquals("number of tags should match", 1, -- cgit v1.2.3