diff options
author | Vitaly Takmazov | 2021-08-27 13:27:05 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-08-27 13:27:05 +0300 |
commit | 174c1af0738a3839586aa3b932540ad9c0c9537b (patch) | |
tree | b4ef03446920a385a3ce1d817c7040c0c05182b5 /src/test/java/com/juick/server/tests/ServerTests.java | |
parent | 41ed7f3739d89ac1f5f77c36aaca36ea4c261601 (diff) |
ActivityPub: respond with NOT_FOUND when message is not found
Diffstat (limited to 'src/test/java/com/juick/server/tests/ServerTests.java')
-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 3ba5d7e3..8583642f 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -1849,6 +1849,9 @@ public class ServerTests { .get(); json = jsonMapper.writeValueAsString(Context.build( activityPubManager.makeNote(messagesService.getReply(replyToExt.getMid(), replyToExt.getRid())))); + mockMvc.perform(get("/n/2-0")).andExpect(status().isOk()); + mockMvc.perform(get("/n/2222-0")).andExpect(status().isNotFound()); + mockMvc.perform(get("/n/2-14")).andExpect(status().isNotFound()); } @Test |