aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/test')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java2
1 files changed, 2 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 c3816fad..75024029 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
@@ -1372,6 +1372,8 @@ public class ServerTests {
jdbcTemplate.update("UPDATE users SET banned=1 WHERE id=?", bannedUserId);
messagesService.createMessage(bannedUserId, "KURWA", null, Collections.emptyList());
assertThat(messagesService.getAll(casualUserId, 0).size(), is(0));
+ assertThat(messagesService.getDiscussions(casualUserId, 0L).size(), is(0));
+ assertThat(messagesService.getDiscussions(0, 0L).size(), is(0));
assertThat(messagesService.getAll(bannedUserId, 0).size(), is(1));
int mid = messagesService.createMessage(casualUserId, "PEACE", null, Collections.emptyList());
User banned = userService.getUserByName("banned");