From 23a41aebadbe13e8992856c6be84ce6d01de0175 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Sat, 14 Jan 2023 15:42:03 +0300 Subject: Configure test coverage reports --- src/test/java/com/juick/server/tests/ServerTests.java | 1 + 1 file changed, 1 insertion(+) (limited to 'src/test/java/com') diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index a6c840bf..d6f0b6ae 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -2715,6 +2715,7 @@ public class ServerTests { mockMvc.perform(get("/mention?username=vt@juick.com")).andExpect( redirectedUrl("https://juick.com/vt/") ); + mockMvc.perform(get("/mention?username=")).andExpect(status().isBadRequest()); } @Test -- cgit v1.2.3