@Test public void testGet() throws Exception { ServletCaller caller = new ServletCaller(); caller.doGet(new StatusServlet()); assertEquals(200, (int) caller.getResponseStatus()); assertTrue(caller.getResponseBody().contains("ok")); }
@Override protected void get(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { respondWithJson(resp, status); }
StatusServlet extends AbstractApiServlet { @Override protected void get(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { respondWithJson(resp, status); } }
StatusServlet extends AbstractApiServlet { @Override protected void get(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { respondWithJson(resp, status); } StatusServlet();  StatusServlet(BaleenStatus status); }
StatusServlet extends AbstractApiServlet { @Override protected void get(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { respondWithJson(resp, status); } StatusServlet();  StatusServlet(BaleenStatus status);  }
StatusServlet extends AbstractApiServlet { @Override protected void get(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { respondWithJson(resp, status); } StatusServlet();  StatusServlet(BaleenStatus status);   }