From 9e34f63f7921ba68bd63efc851f5a87518a682b5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 18 Mar 2024 16:41:36 +0300 Subject: ActivityPub: coalesce empty `cc` field to array --- src/test/java/com/juick/server/tests/ServerTests.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/test/java/com/juick/server/tests') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 47bb4d22d..7046fdf80 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -235,6 +235,8 @@ public class ServerTests { private Resource sapeOutput; @Value("classpath:friendica_update.json") private Resource friendicaUpdate; + @Value("classpath:zot_like.json") + private Resource zotLike; @Value("classpath:message_group_reference.json") private Resource groupReferenceMessage; @Inject @@ -2291,6 +2293,8 @@ public class ServerTests { String flagString = IOUtils.toString(mastodonFlag.getInputStream(), StandardCharsets.UTF_8); Flag flag = (Flag) jsonMapper.readValue(flagString, Context.class); assertThat(flag.getObject().size(), is(3)); + String zotLikeString = IOUtils.toString(zotLike.getInputStream(), StandardCharsets.UTF_8); + Like zotLike = (Like) jsonMapper.readValue(zotLikeString, Context.class); } @Test -- cgit v1.2.3