@Test public void testDoGetShouldStopService() throws ServletException, IOException { underTest.doGet(req, resp); verify(wilmaService).stop(); }
@Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { writeResponse(resp); logger.info(urlAccessLogMessageAssembler.assembleMessage(req, SHUTDOWN_MESSAGE)); wilmaService.stop(); }
ShutdownServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { writeResponse(resp); logger.info(urlAccessLogMessageAssembler.assembleMessage(req, SHUTDOWN_MESSAGE)); wilmaService.stop(); } }
ShutdownServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { writeResponse(resp); logger.info(urlAccessLogMessageAssembler.assembleMessage(req, SHUTDOWN_MESSAGE)); wilmaService.stop(); } @Autowired  ShutdownServlet(WilmaService wilmaService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler); }
ShutdownServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { writeResponse(resp); logger.info(urlAccessLogMessageAssembler.assembleMessage(req, SHUTDOWN_MESSAGE)); wilmaService.stop(); } @Autowired  ShutdownServlet(WilmaService wilmaService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);  }
ShutdownServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { writeResponse(resp); logger.info(urlAccessLogMessageAssembler.assembleMessage(req, SHUTDOWN_MESSAGE)); wilmaService.stop(); } @Autowired  ShutdownServlet(WilmaService wilmaService, UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);   }