From 473c9dcec4ff03baf9940bc980371692e369ead2 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 24 Apr 2018 22:22:36 +0300 Subject: server: allow like reaction --- juick-server/src/test/java/com/juick/server/tests/ServerTests.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'juick-server/src') 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 087acbc4..4ea212f1 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 @@ -286,8 +286,6 @@ public class ServerTests { assertEquals("tags string should be empty", StringUtils.EMPTY, MessageUtils.getTagsString(msg4)); messagesService.deleteMessage(user_id, mid4); } - - @Rule public ExpectedException exception = ExpectedException.none(); @Test @@ -298,10 +296,10 @@ public class ServerTests { messagesService.likeMessage(mid, freefdId , 2); messagesService.likeMessage(mid, freefdId,2); messagesService.likeMessage(mid, freefdId,3); - exception.expect(IllegalArgumentException.class); messagesService.likeMessage(mid, freefdId,1); Message msg4 = messagesService.getMessage(mid); + assertThat(msg4.getLikes(), equalTo(1)); Assert.assertEquals(2, msg4.getReactions().stream().filter(r -> r.getId() == 2) .findFirst().orElseThrow(IllegalStateException::new).getCount()); -- cgit v1.2.3