diff options
author | Vitaly Takmazov | 2018-04-16 22:05:31 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-16 22:05:31 +0300 |
commit | 516b3cf0032a6204711dc85cd42d2bf41b84e999 (patch) | |
tree | 1e31f5153260979e80d63866e6a0f070e0c32c4e /juick-server/src/test/java | |
parent | 90d77f71c53a6349c1fb3bcf81d6f9a2a630b3e6 (diff) |
www: fix refreshing notifications counter
Diffstat (limited to 'juick-server/src/test/java')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 6 |
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)); } } |