diff --git a/javatests/google/registry/module/backend/BackendServletTest.java b/javatests/google/registry/module/backend/BackendServletTest.java index 0db3f0f10..ec651fc72 100644 --- a/javatests/google/registry/module/backend/BackendServletTest.java +++ b/javatests/google/registry/module/backend/BackendServletTest.java @@ -38,7 +38,7 @@ public class BackendServletTest { private final HttpServletResponse rsp = mock(HttpServletResponse.class); @Test - public void testDoPost_notFound() throws Exception { + public void testService_unknownPath_returnsNotFound() throws Exception { when(req.getMethod()).thenReturn("GET"); when(req.getRequestURI()).thenReturn("/lol"); new BackendServlet().service(req, rsp); diff --git a/javatests/google/registry/module/frontend/FrontendServletTest.java b/javatests/google/registry/module/frontend/FrontendServletTest.java index f02c02b47..fbe29e836 100644 --- a/javatests/google/registry/module/frontend/FrontendServletTest.java +++ b/javatests/google/registry/module/frontend/FrontendServletTest.java @@ -38,7 +38,7 @@ public class FrontendServletTest { private final HttpServletResponse rsp = mock(HttpServletResponse.class); @Test - public void testDoPost_notFound() throws Exception { + public void testService_unknownPath_returnNotFound() throws Exception { when(req.getMethod()).thenReturn("GET"); when(req.getRequestURI()).thenReturn("/lol"); new FrontendServlet().service(req, rsp); diff --git a/javatests/google/registry/module/tools/ToolsServletTest.java b/javatests/google/registry/module/tools/ToolsServletTest.java index b62ab895a..33cbed819 100644 --- a/javatests/google/registry/module/tools/ToolsServletTest.java +++ b/javatests/google/registry/module/tools/ToolsServletTest.java @@ -32,7 +32,7 @@ public class ToolsServletTest { private final HttpServletResponse rsp = mock(HttpServletResponse.class); @Test - public void testDoPost_notFound() throws Exception { + public void testService_unknownPath_returnsNotFound() throws Exception { when(req.getMethod()).thenReturn("GET"); when(req.getRequestURI()).thenReturn("/lol"); new ToolsServlet().service(req, rsp);