mirror of
https://github.com/google/nomulus
synced 2026-01-07 22:15:30 +00:00
Fix stale doPost references in servlet test method names
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=148352385
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user