@Test public void testAdd() throws Exception { MultiValueMap<String, String> parameters = new LinkedMultiValueMap<String, String>(); parameters.add("jobGroup", "1"); MvcResult ret = mockMvc.perform( post("/jobinfo/pageList") .contentType(MediaType.APPLICATION_FORM_URLENCODED) .params(parameters) .cookie(cookie) ).andReturn(); System.out.println(ret.getResponse().getContentAsString()); }
@RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); }
JobInfoController { @RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); } }
JobInfoController { @RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); }  }
JobInfoController { @RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); }  @RequestMapping String index(HttpServletRequest request, Model model, @RequestParam(required = false, defaultValue = "-1") int jobGroup); static List<XxlJobGroup> filterJobGroupByRole(HttpServletRequest request, List<XxlJobGroup> jobGroupList_all); static void validPermission(HttpServletRequest request, int jobGroup); @RequestMapping("/pageList") @ResponseBody Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,  
			@RequestParam(required = false, defaultValue = "10") int length,
			int jobGroup, int triggerStatus, String jobDesc, String executorHandler, String filterTime); @RequestMapping("/add") @ResponseBody ReturnT<String> add(XxlJobInfo jobInfo); @RequestMapping("/update") @ResponseBody ReturnT<String> update(XxlJobInfo jobInfo); @RequestMapping("/remove") @ResponseBody ReturnT<String> remove(int id); @RequestMapping("/stop") @ResponseBody ReturnT<String> pause(int id); @RequestMapping("/start") @ResponseBody ReturnT<String> start(int id); @RequestMapping("/trigger") @ResponseBody //@PermissionLimit(limit = false) ReturnT<String> triggerJob(int id, String executorParam); }
JobInfoController { @RequestMapping("/add") @ResponseBody public ReturnT<String> add(XxlJobInfo jobInfo) { return xxlJobService.add(jobInfo); }  @RequestMapping String index(HttpServletRequest request, Model model, @RequestParam(required = false, defaultValue = "-1") int jobGroup); static List<XxlJobGroup> filterJobGroupByRole(HttpServletRequest request, List<XxlJobGroup> jobGroupList_all); static void validPermission(HttpServletRequest request, int jobGroup); @RequestMapping("/pageList") @ResponseBody Map<String, Object> pageList(@RequestParam(required = false, defaultValue = "0") int start,  
			@RequestParam(required = false, defaultValue = "10") int length,
			int jobGroup, int triggerStatus, String jobDesc, String executorHandler, String filterTime); @RequestMapping("/add") @ResponseBody ReturnT<String> add(XxlJobInfo jobInfo); @RequestMapping("/update") @ResponseBody ReturnT<String> update(XxlJobInfo jobInfo); @RequestMapping("/remove") @ResponseBody ReturnT<String> remove(int id); @RequestMapping("/stop") @ResponseBody ReturnT<String> pause(int id); @RequestMapping("/start") @ResponseBody ReturnT<String> start(int id); @RequestMapping("/trigger") @ResponseBody //@PermissionLimit(limit = false) ReturnT<String> triggerJob(int id, String executorParam);  }