diff options
author | Vitaly Takmazov | 2021-10-30 05:08:45 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2021-10-30 05:16:54 +0300 |
commit | cedf00d682ef0b62e291f9fec9946162bcdc098e (patch) | |
tree | 06f063cf601646b5fa8f90829992c0a24ade3137 /src/test/java/com/juick/server | |
parent | b510c139c7b0931c1e17aeaf13b92488f4da1fd1 (diff) |
Handle wrong RSS path correctly
Diffstat (limited to 'src/test/java/com/juick/server')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 2 |
1 files changed, 1 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 14517a60..5bb10ae9 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2361,7 +2361,7 @@ public class ServerTests { + "q=0.8,application/signed-exchange;v=b3")) .andExpect(status().isOk()).andExpect(content().contentType("application/rss+xml;charset=UTF-8")); mockMvc.perform(get("/rss/ugnich/feed").accept(MediaType.TEXT_XML)).andExpect(status().isOk()); - mockMvc.perform(get("/rss/ugnich/diary").accept(MediaType.TEXT_XML)).andExpect(status().isBadRequest()); + mockMvc.perform(get("/rss/ugnich/diary").accept(MediaType.TEXT_XML)).andExpect(status().isNotFound()); } @Test |