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