aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2024-03-17 07:55:22 +0300
committerGravatar Vitaly Takmazov2024-03-17 07:55:22 +0300
commit8207857f4a3ab8a3bdae8aa248637700c6072dd0 (patch)
treee597af01157029face1464ae5d2e52b04fbd565c /src/test/java/com
parent0e1f88d67d1b9c77a854a887da45a10994cf91f3 (diff)
Do not resolve nicknames for recommendations
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index b97ae8a3..47bb4d22 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1589,14 +1589,14 @@ public class ServerTests {
assertThat(CollectionUtils.isEqualCollection(
messagesService.getMessagesRecommendations(monstreek.getUid(), Collections.singletonList(mid)).stream()
.map(Pair::getRight).map(User::getName).toList(),
- Arrays.asList("ermine", "pogo", "Anonymous")), is(true));
+ Arrays.asList("ermine", "pogo", "test@example.com")), is(true));
privacyQueriesService.blacklistUser(userService.getUserByName("monstreek"),
userService.getUserByName("pogo"));
assertThat(messagesService.getMessage(mid).get().getRecommendations().size(), is(3));
assertThat(CollectionUtils.isEqualCollection(
messagesService.getMessagesRecommendations(monstreek.getUid(), Collections.singletonList(mid)).stream()
.map(Pair::getRight).map(User::getName).toList(),
- Arrays.asList("ermine", "Anonymous")), is(true));
+ Arrays.asList("ermine", "test@example.com")), is(true));
jdbcTemplate.execute("DELETE FROM favorites");
}