diff options
author | Vitaly Takmazov | 2018-07-26 22:55:51 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-07-26 22:55:51 +0300 |
commit | c1e6e9dd484beb02dbd22f1b5ee3f86e8ca4aa0a (patch) | |
tree | defd6758ee7209e85d4d7bf249a0b22514c498bc /juick-server/src/test | |
parent | 264bd16c937c48b2af77473944217496fae0aa3d (diff) |
mark threads read when banned replies exists
Diffstat (limited to 'juick-server/src/test')
-rw-r--r-- | juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 3 |
1 files changed, 2 insertions, 1 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 61c51b44..2362cd0f 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 @@ -1070,7 +1070,8 @@ public class ServerTests { assertThat(userService.isReplyToBL(ugnich, reply), is(true)); assertThat(replies.size(), is(1)); commandsManager.processCommand(ugnich, "BL @freefd", emptyUri); - messagesService.setLastReadComment(ugnich, mid, 5); + messagesService.setRead(ugnich, mid); + assertThat(messagesService.getReplies(ugnich, mid).size(), is(5)); } @Test public void cmykJpegShouldBeProcessedCorrectly() throws Exception { |