aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick/server/tests
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-07-26 22:55:51 +0300
committerGravatar Vitaly Takmazov2018-07-26 22:55:51 +0300
commitc1e6e9dd484beb02dbd22f1b5ee3f86e8ca4aa0a (patch)
treedefd6758ee7209e85d4d7bf249a0b22514c498bc /juick-server/src/test/java/com/juick/server/tests
parent264bd16c937c48b2af77473944217496fae0aa3d (diff)
mark threads read when banned replies exists
Diffstat (limited to 'juick-server/src/test/java/com/juick/server/tests')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java3
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 {