@Test public void testSendJsonSuccess() { String body = ajaxSuccessController.sendJsonSuccess(null, null); String expectedResponse = "{ 'success': 'true' }"; assertEquals(expectedResponse, body); }
@RequestMapping(SUCCESS_URL) public @ResponseBody String sendJsonSuccess( HttpServletRequest request, HttpServletResponse response) { return SUCCESS_RESPONSE; }
AjaxSuccessController { @RequestMapping(SUCCESS_URL) public @ResponseBody String sendJsonSuccess( HttpServletRequest request, HttpServletResponse response) { return SUCCESS_RESPONSE; } }
AjaxSuccessController { @RequestMapping(SUCCESS_URL) public @ResponseBody String sendJsonSuccess( HttpServletRequest request, HttpServletResponse response) { return SUCCESS_RESPONSE; }  }
AjaxSuccessController { @RequestMapping(SUCCESS_URL) public @ResponseBody String sendJsonSuccess( HttpServletRequest request, HttpServletResponse response) { return SUCCESS_RESPONSE; }  @RequestMapping(SUCCESS_URL) @ResponseBody String sendJsonSuccess(
            HttpServletRequest request, HttpServletResponse response); }
AjaxSuccessController { @RequestMapping(SUCCESS_URL) public @ResponseBody String sendJsonSuccess( HttpServletRequest request, HttpServletResponse response) { return SUCCESS_RESPONSE; }  @RequestMapping(SUCCESS_URL) @ResponseBody String sendJsonSuccess(
            HttpServletRequest request, HttpServletResponse response); static final String SUCCESS_URL; static final String SUCCESS_RESPONSE; }