@Test public void testDoGetShouldSwitchOnProxyMode() throws ServletException, IOException { underTest.doGet(request, response); verify(proxyModeToggle).switchProxyModeOn(); }
@Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Operation Mode: PROXY.")); proxyModeToggle.switchProxyModeOn(); routingService.setOperationMode(OperationMode.PROXY); }
ProxyModeOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Operation Mode: PROXY.")); proxyModeToggle.switchProxyModeOn(); routingService.setOperationMode(OperationMode.PROXY); } }
ProxyModeOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Operation Mode: PROXY.")); proxyModeToggle.switchProxyModeOn(); routingService.setOperationMode(OperationMode.PROXY); } @Autowired  ProxyModeOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, ProxyModeToggle proxyModeToggle, RoutingService routingService); }
ProxyModeOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Operation Mode: PROXY.")); proxyModeToggle.switchProxyModeOn(); routingService.setOperationMode(OperationMode.PROXY); } @Autowired  ProxyModeOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, ProxyModeToggle proxyModeToggle, RoutingService routingService);  }
ProxyModeOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Operation Mode: PROXY.")); proxyModeToggle.switchProxyModeOn(); routingService.setOperationMode(OperationMode.PROXY); } @Autowired  ProxyModeOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, ProxyModeToggle proxyModeToggle, RoutingService routingService);   }