@Test public void testDoPostShouldCallSaveStubConfigurations() throws ServletException, IOException, JsonTransformationException { underTest.doPost(request, response); verify(stubConfigurationSaverService).saveStubConfigurations(); verify(response).setStatus(HttpServletResponse.SC_OK); }
@Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); }
StubConfigurationSaverServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } }
StubConfigurationSaverServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  StubConfigurationSaverServlet(StubConfigurationSaverService stubConfigurationSaverService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler); }
StubConfigurationSaverServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  StubConfigurationSaverServlet(StubConfigurationSaverService stubConfigurationSaverService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);  }
StubConfigurationSaverServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } @Autowired  StubConfigurationSaverServlet(StubConfigurationSaverService stubConfigurationSaverService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);   }