@Test public void testDoGetShouldCallDoChangeOfStubConfigurationService() throws ServletException, IOException, ClassNotFoundException { underTest.doGet(request, response); verify(stubConfigurationOrderService).doChange(1, DEFAULT_GROUPNAME, request); }
@Override protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { String groupName = request.getParameter("groupname"); String tempDir = request.getParameter("direction"); try { int direction = Integer.parseInt(tempDir); stubConfigurationOrderService.doChange(direction, groupName, request); } catch (ClassNotFoundException|NumberFormatException e) { logger.debug(ERROR_MSG, e); writeErrorToResponse(response); } }
StubConfigurationOrderServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { String groupName = request.getParameter("groupname"); String tempDir = request.getParameter("direction"); try { int direction = Integer.parseInt(tempDir); stubConfigurationOrderService.doChange(direction, groupName, request); } catch (ClassNotFoundException|NumberFormatException e) { logger.debug(ERROR_MSG, e); writeErrorToResponse(response); } } }
StubConfigurationOrderServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { String groupName = request.getParameter("groupname"); String tempDir = request.getParameter("direction"); try { int direction = Integer.parseInt(tempDir); stubConfigurationOrderService.doChange(direction, groupName, request); } catch (ClassNotFoundException|NumberFormatException e) { logger.debug(ERROR_MSG, e); writeErrorToResponse(response); } } @Autowired  StubConfigurationOrderServlet(StubConfigurationOrderService stubConfigurationOrderService); }
StubConfigurationOrderServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { String groupName = request.getParameter("groupname"); String tempDir = request.getParameter("direction"); try { int direction = Integer.parseInt(tempDir); stubConfigurationOrderService.doChange(direction, groupName, request); } catch (ClassNotFoundException|NumberFormatException e) { logger.debug(ERROR_MSG, e); writeErrorToResponse(response); } } @Autowired  StubConfigurationOrderServlet(StubConfigurationOrderService stubConfigurationOrderService);  }
StubConfigurationOrderServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { String groupName = request.getParameter("groupname"); String tempDir = request.getParameter("direction"); try { int direction = Integer.parseInt(tempDir); stubConfigurationOrderService.doChange(direction, groupName, request); } catch (ClassNotFoundException|NumberFormatException e) { logger.debug(ERROR_MSG, e); writeErrorToResponse(response); } } @Autowired  StubConfigurationOrderServlet(StubConfigurationOrderService stubConfigurationOrderService);   }