diff options
author | Vitaly Takmazov | 2019-05-27 14:19:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2019-05-27 14:19:05 +0300 |
commit | 852ee6a66a7aa7ae96b94defcd44494b0e71b02f (patch) | |
tree | 5117674deba53a9e8e3a8781c4d10a0deea71ae3 /src/test/java/com | |
parent | 26d7c249eec88a6977f74756d628a85282ebe644 (diff) |
ActivityPub: deserialize activities with single context
Diffstat (limited to 'src/test/java/com')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 3 |
1 files changed, 3 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 322d4de7..a140e9f0 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -1705,6 +1705,9 @@ public class ServerTests { NodeInfo info = jsonMapper.readValue(IOUtils.toString(new ClassPathResource("xnodeinfo2.json").getURI(), StandardCharsets.UTF_8), NodeInfo.class); assertThat(info.getUsage().getUsers().getActiveHalfyear(), is(42)); Like like = jsonMapper.readValue(IOUtils.toString(new ClassPathResource("like.json").getURI(), StandardCharsets.UTF_8), Like.class); + String undoPleromaStr = IOUtils.toString(new ClassPathResource("undo_pleroma.json").getURI(), StandardCharsets.UTF_8); + Undo undoPleroma = jsonMapper.readValue(undoPleromaStr, Undo.class); + String undoPleromaFollower = (String)((Map)undoPleroma.getObject()).get("object"); } @Test public void activitySerialization() throws Exception { |