@Test public void doGetShouldSwitchLocalhostRequestProcessingOff() throws ServletException, IOException { underTest.doGet(req, resp); verify(localhostRequestProcessorToggle).switchOff(); }
@Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Localhost Mode: OFF")); localhostRequestProcessorToggle.switchOff(); }
BlockLocalhostUsageOffServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Localhost Mode: OFF")); localhostRequestProcessorToggle.switchOff(); } }
BlockLocalhostUsageOffServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Localhost Mode: OFF")); localhostRequestProcessorToggle.switchOff(); } @Autowired  BlockLocalhostUsageOffServlet(LocalhostRequestProcessorToggle localhostRequestProcessorToggle,
            UrlAccessLogMessageAssembler urlAccessLogMessageAssembler); }
BlockLocalhostUsageOffServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Localhost Mode: OFF")); localhostRequestProcessorToggle.switchOff(); } @Autowired  BlockLocalhostUsageOffServlet(LocalhostRequestProcessorToggle localhostRequestProcessorToggle,
            UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);  }
BlockLocalhostUsageOffServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Set Localhost Mode: OFF")); localhostRequestProcessorToggle.switchOff(); } @Autowired  BlockLocalhostUsageOffServlet(LocalhostRequestProcessorToggle localhostRequestProcessorToggle,
            UrlAccessLogMessageAssembler urlAccessLogMessageAssembler);   }