aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-04 14:18:53 +0300
committerGravatar Vitaly Takmazov2018-10-04 14:18:53 +0300
commit051fd4608ebd30e94eb847906571f5f221d3e952 (patch)
tree23b4e51a768dfb4ae2dd1b767fece49f1817cabf /juick-server/src/test/java/com/juick
parent873fbbc8b7f59c68c6bf37ff9af79c8fb2aef8ed (diff)
Undo object deserialized as Map
Diffstat (limited to 'juick-server/src/test/java/com/juick')
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index fa93ee64..4046a798 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -35,6 +35,7 @@ import com.juick.server.api.activity.model.Context;
import com.juick.server.api.activity.model.Key;
import com.juick.server.api.activity.model.Person;
import com.juick.server.api.activity.model.activities.Follow;
+import com.juick.server.api.activity.model.activities.Undo;
import com.juick.server.util.HttpUtils;
import com.juick.server.util.ImageUtils;
import com.juick.server.xmpp.helpers.XMPPStatus;
@@ -1684,6 +1685,9 @@ public class ServerTests {
Follow follow = (Follow)jsonMapper.readValue(followJsonStr, Context.class);
String personJsonStr = IOUtils.toString(URI.create("classpath:person.json"), StandardCharsets.UTF_8);
Person person = (Person)jsonMapper.readValue(personJsonStr, Context.class);
+ String undoJsonStr = IOUtils.toString(URI.create("classpath:undo.json"), StandardCharsets.UTF_8);
+ Undo undo = jsonMapper.readValue(undoJsonStr, Undo.class);
+ String undoFollower = (String)((Map)undo.getObject()).get("object");
}
@Test
public void signingSpec() throws IOException {