From 350f6942078e67b15e160ecffc913ba0cef624be Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 16 Apr 2018 14:14:27 +0300 Subject: server: do not make last read mark lower --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 2 ++ 1 file changed, 2 insertions(+) (limited to 'juick-server/src/test/java/com/juick/server') 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 d09a509d..046e0e7d 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 @@ -767,5 +767,7 @@ public class ServerTests { messagesService.getReplies(ugnich, mid); assertThat(lastRead.apply(ugnich, mid), is(1)); assertThat(messagesService.getUnread(ugnich).size(), is(0)); + messagesService.setLastReadComment(ugnich, mid, 0); + assertThat(lastRead.apply(ugnich, mid), is(1)); } } -- cgit v1.2.3