aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/test
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/test')
-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 {