aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-08-27 16:39:46 +0300
committerGravatar Vitaly Takmazov2021-08-27 16:39:46 +0300
commite0f560c662d20b1956cb706b6423596efd33e8fb (patch)
treefd457bb0fa8edb0418f3744ec568fa9a54a0e3d1 /src/test/java/com
parent174c1af0738a3839586aa3b932540ad9c0c9537b (diff)
ActivityPub: fix Application activites, use Actor where possible
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 8583642f..d19c76cb 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -1842,8 +1842,8 @@ public class ServerTests {
create.setId(replyNote.getId());
create.setActor("http://localhost:8080/u/freefd");
create.setObject(replyNote);
- signatureManager.post((Person) signatureManager.getContext(URI.create("http://localhost:8080/u/freefd")).get(),
- (Person) signatureManager.getContext(URI.create("http://localhost:8080/u/ugnich")).get(), create);
+ signatureManager.post((Actor) signatureManager.getContext(URI.create("http://localhost:8080/u/freefd")).get(),
+ (Actor) signatureManager.getContext(URI.create("http://localhost:8080/u/ugnich")).get(), create);
Message replyToExt = commandsManager
.processCommand(ugnich, String.format("#%d/1 PSSH YOBA ETO TI", msg.getMid()), emptyUri).getNewMessage()
.get();
@@ -1856,8 +1856,8 @@ public class ServerTests {
@Test
public void signingSpec() throws IOException, NoSuchAlgorithmException {
- Person from = (Person) signatureManager.getContext(URI.create("http://localhost:8080/u/freefd")).get();
- Person to = (Person) signatureManager.getContext(URI.create("http://localhost:8080/u/ugnich")).get();
+ Actor from = (Actor) signatureManager.getContext(URI.create("http://localhost:8080/u/freefd")).get();
+ Actor to = (Actor) signatureManager.getContext(URI.create("http://localhost:8080/u/ugnich")).get();
Follow follow = new Follow();
follow.setActor("http://localhost:8080/u/freefd");
follow.setObject(new Context("http://localhost:8080/u/ugnich"));