diff options
author | Vitaly Takmazov | 2024-03-18 16:41:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-03-18 16:41:36 +0300 |
commit | 9e34f63f7921ba68bd63efc851f5a87518a682b5 (patch) | |
tree | 0ce05c4f152306a92d2121cf5ad5f7ab0af45c0a /src/test/java/com/juick/server | |
parent | 8207857f4a3ab8a3bdae8aa248637700c6072dd0 (diff) |
ActivityPub: coalesce empty `cc` field to array
Diffstat (limited to 'src/test/java/com/juick/server')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 47bb4d22..7046fdf8 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 |