aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/test/java')
-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 db932dc9..17c7e35c 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
@@ -789,5 +789,11 @@ public class ServerTests {
serverManager.onApplicationEvent(new MessageEvent(this, messagesService.getReply(mid, newfreefdrid),
Collections.emptyList()));
assertThat(lastRead.apply(ugnich, mid), is(newfreefdrid));
+ privacyQueriesService.blacklistUser(ugnich, freefd);
+ newfreefdrid = messagesService.createReply(mid, 0, freefd, "after ban", null);
+ assertThat(lastRead.apply(ugnich, mid), lessThan(newfreefdrid));
+ mockMvc.perform(get(String.format("/thread?mid=%d&hash=%s", mid, ugnichHash)))
+ .andExpect(status().isOk());
+ assertThat(lastRead.apply(ugnich, mid), is(newfreefdrid));
}
}