From 31cb8c7526b96c6577badb203a336685a806b802 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Thu, 12 May 2022 11:16:34 +0300 Subject: Update top criterias --- src/test/java/com/juick/server/tests/ServerTests.java | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/test/java/com/juick/server') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 18aa41f7..e5b4562c 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -830,6 +830,9 @@ public class ServerTests { int anotherMid = messagesService.createMessage(ugnich.getUid(), "top2", null, Set.of()); messagesService.recommendMessage(anotherMid, freefd.getUid()); messagesService.recommendMessage(anotherMid, recommender.getUid()); + assertThat(messagesService.getPopularCandidates().isEmpty(), is(true)); + User recommender3 = userService.createUser("recommender3", "x").orElseThrow(IllegalStateException::new); + messagesService.recommendMessage(anotherMid, recommender3.getUid()); assertThat(messagesService.getPopularCandidates().get(0), is(anotherMid)); messagesService.recommendMessage(anotherMid, serviceUser.getUid()); assertThat(messagesService.getPopularCandidates().isEmpty(), is(true)); -- cgit v1.2.3