aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-09-13 15:28:43 +0300
committerGravatar Vitaly Takmazov2018-09-13 15:28:43 +0300
commitd6bd717e553be5d339cf05bca099539844ba68a5 (patch)
treeba03e5d9c0ea032872d4b656eaebc303deeb52fd /juick-server/src/test/java/com/juick
parent45b3367114521414bc3d28114b08fdfe7ba15415 (diff)
hide banned from tags
Diffstat (limited to 'juick-server/src/test/java/com/juick')
-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 13cb8d41..a9e68b68 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
@@ -1121,6 +1121,12 @@ public class ServerTests {
assertThat(messagesService.getReplies(ugnich, mid).size(), is(5));
List<Message> nonblmsgs = messagesService.getMessages(ugnich, Collections.singletonList(mid));
assertThat(nonblmsgs.get(0).getReplies(), is(5));
+ commandsManager.processCommand(ugnich, "BL @freefd", emptyUri);
+ Tag tag = tagService.getTag("linux", true);
+ messagesService.createMessage(freefd.getUid(), "sux", null, Collections.singletonList(tag));
+ assertThat(messagesService.getTag(tag.TID, freefd.getUid(), 0, 10).size(), is(1));
+ assertThat(messagesService.getTag(tag.TID, ugnich.getUid(), 0, 10).size(), is(0));
+ commandsManager.processCommand(ugnich, "BL @freefd", emptyUri);
}
@Test
public void cmykJpegShouldBeProcessedCorrectly() throws Exception {