@Test public void doPostShouldCallDoGet() throws ServletException, IOException { given(resp.getWriter()).willReturn(printWriter); ProxyServer.setResponseVolatile(true); underTest.doPost(req, resp); verify(resp).setContentType("application/json"); verify(printWriter).write("{\"responseVolatility\":true}"); }
@Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); }
ResponseMessageVolatilityStatusServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); } }
ResponseMessageVolatilityStatusServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); }  }
ResponseMessageVolatilityStatusServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); }   }
ResponseMessageVolatilityStatusServlet extends HttpServlet { @Override protected void doPost(final HttpServletRequest req, final HttpServletResponse resp) throws ServletException, IOException { doGet(req, resp); }    }