aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-04 07:18:16 +0300
committerGravatar Vitaly Takmazov2023-01-04 07:18:16 +0300
commit0e20ca44eee0cb2726b575aed88a495206481973 (patch)
tree65dc225857d836eebd5acca9125fbc1cdde0c158 /src/test/java/com
parenta48e976347abe9e61d7b4ba61831098629aabece (diff)
ActivityPub: handle Note updates
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 5eeeab3d..6e4bbcb5 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -255,6 +255,8 @@ public class ServerTests {
private Resource sapeOutput;
@Value("classpath:flag.json")
private Resource flagPayload;
+ @Value("classpath:friendica_update.json")
+ private Resource friendicaUpdate;
@Inject
AppleClientSecretGenerator clientSecretGenerator;
@Inject
@@ -2449,7 +2451,7 @@ public class ServerTests {
}
@Test
- public void hubzillaAndHonkActor() throws Exception {
+ public void hubzillaAndHonkActorAndFriendicaUpdate() throws Exception {
String activity = IOUtils.toString(hubzillaActivity.getInputStream(), StandardCharsets.UTF_8);
Create create = jsonMapper.readValue(activity, Create.class);
String followData = IOUtils.toString(hubzillaFollow.getInputStream(), StandardCharsets.UTF_8);
@@ -2458,6 +2460,8 @@ public class ServerTests {
String honkData = IOUtils.toString(honkFollow.getInputStream(), StandardCharsets.UTF_8);
Follow hfollow = jsonMapper.readValue(honkData, Follow.class);
assertThat(hfollow.getTo().get(0), is("https://juick.com/u/vt"));
+ String updateString = IOUtils.toString(friendicaUpdate.getInputStream(), StandardCharsets.UTF_8);
+ Update update = jsonMapper.readValue(updateString, Update.class);
}
@Test