@Test public void system_ping() throws Exception { StringWriter sw = new StringWriter(); HttpServletRequest request = mock(HttpServletRequest.class); HttpServletResponse response = mock(HttpServletResponse.class); when(response.getWriter()).thenReturn(new PrintWriter(sw)); systemController.ping(request, response); assertXMLEqual(new ResourceUtil(PING).getContent(), sw.getBuffer().toString()); }
public void ping(HttpServletRequest request, HttpServletResponse response) throws Exception { XMLBuilder builder = createXMLBuilder(request, response, true).endAll(); response.getWriter().print(builder); }
RESTSystemController extends RESTAbstractController { public void ping(HttpServletRequest request, HttpServletResponse response) throws Exception { XMLBuilder builder = createXMLBuilder(request, response, true).endAll(); response.getWriter().print(builder); } }
RESTSystemController extends RESTAbstractController { public void ping(HttpServletRequest request, HttpServletResponse response) throws Exception { XMLBuilder builder = createXMLBuilder(request, response, true).endAll(); response.getWriter().print(builder); }  }
RESTSystemController extends RESTAbstractController { public void ping(HttpServletRequest request, HttpServletResponse response) throws Exception { XMLBuilder builder = createXMLBuilder(request, response, true).endAll(); response.getWriter().print(builder); }  void ping(HttpServletRequest request, HttpServletResponse response); void getLicense(HttpServletRequest request, HttpServletResponse response); void setSettingsService(SettingsService settingsService); }
RESTSystemController extends RESTAbstractController { public void ping(HttpServletRequest request, HttpServletResponse response) throws Exception { XMLBuilder builder = createXMLBuilder(request, response, true).endAll(); response.getWriter().print(builder); }  void ping(HttpServletRequest request, HttpServletResponse response); void getLicense(HttpServletRequest request, HttpServletResponse response); void setSettingsService(SettingsService settingsService);  }