aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-21 23:41:15 +0300
committerGravatar Vitaly Takmazov2021-10-21 23:41:15 +0300
commit37f643b3466307e0b29b105df23b585108c7c564 (patch)
tree6ef5b32506e996c75ff6d6583725b2f2fb4c7852 /src/test/java/com/juick
parentc6972c05dcee19afb5725767f755a56f5162aee2 (diff)
Top feed should not contain banned users
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index ff86f4b4..aceed0b9 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1178,9 +1178,11 @@ public class ServerTests {
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));
+ int freefdMsg = 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));
+ messagesService.recommendMessage(freefdMsg, serviceUser.getUid());
+ assertThat(messagesService.getUserBlogWithRecommendations(serviceUser, ugnich, 0, 0).contains(freefdMsg), is(false));
commandsManager.processCommand(ugnich, "BL @freefd", emptyUri);
}