@Test public void testDoGetShouldAssembleMessage() throws ServletException, IOException { underTest.doGet(request, response); verify(urlAccessLogMessageAssembler).assembleMessage(Mockito.any(HttpServletRequest.class), Mockito.anyString()); }
@Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Message logging: ON")); messageLoggingToggle.switchOnMessageLogging(); }
MessageLoggingOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Message logging: ON")); messageLoggingToggle.switchOnMessageLogging(); } }
MessageLoggingOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Message logging: ON")); messageLoggingToggle.switchOnMessageLogging(); } @Autowired  MessageLoggingOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, MessageLoggingToggle messageLoggingToggle); }
MessageLoggingOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Message logging: ON")); messageLoggingToggle.switchOnMessageLogging(); } @Autowired  MessageLoggingOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, MessageLoggingToggle messageLoggingToggle);  }
MessageLoggingOnServlet extends HttpServlet { @Override protected void doGet(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { logger.info(urlAccessLogMessageAssembler.assembleMessage(req, "Message logging: ON")); messageLoggingToggle.switchOnMessageLogging(); } @Autowired  MessageLoggingOnServlet(UrlAccessLogMessageAssembler urlAccessLogMessageAssembler, MessageLoggingToggle messageLoggingToggle);   }