aboutsummaryrefslogtreecommitdiff
path: root/src/test/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-01-04 20:42:34 +0300
committerGravatar Vitaly Takmazov2023-01-04 20:42:34 +0300
commite17ac99c67e5069745f3f19a91c18b6d3288b6e9 (patch)
tree5ed1cb7207a4bb52bd3f7c1233a7ea66ef89cea3 /src/test/java/com
parentcf265cbed048b9324aea4b0bd591dbb34fd6c07b (diff)
ActivityPub: cleanup media types and redirects
Diffstat (limited to 'src/test/java/com')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java4
1 files changed, 3 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 6e4bbcb5..51ffb876 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -2683,7 +2683,9 @@ public class ServerTests {
var htmlUri = String.format("/ugnich/%d", mid);
var ldUri = String.format("/n/%d-0", mid);
mockMvc.perform(get(htmlUri).accept(Context.LD_JSON_MEDIA_TYPE)).andExpect(status().is3xxRedirection())
- .andExpect(redirectedUrl(ldUri));
+ .andExpect(redirectedUrl(ldUri));
+ mockMvc.perform(get(htmlUri).accept(MediaType.APPLICATION_JSON)).andExpect(status().is3xxRedirection())
+ .andExpect(redirectedUrl(ldUri));
}
@Test