GroupMemberController { @RequestMapping(value = "/list", method = RequestMethod.POST) public ServiceResult<ListResult<MemberView>> getGroupUsers(@RequestBody Paging<UserGroup> paging) throws SQLException { return ServiceResult.success(groupMemberService.findGroupMemberPageList(paging)); }  @RequestMapping(value = "/users") ServiceResult<List<MemberView>> getUsers(@RequestParam(value = "name", defaultValue = "") String name); @RequestMapping(value = "/list", method = RequestMethod.POST) ServiceResult<ListResult<MemberView>> getGroupUsers(@RequestBody Paging<UserGroup> paging); @RequestMapping(value = "/add", method = RequestMethod.POST) ServiceResult<String> add(@Validated(AddMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/delete", method = RequestMethod.DELETE) ServiceResult<String> delete(@Validated(DeleteMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors); @RequestMapping(value = "/update", method = RequestMethod.PUT) ServiceResult<String> update(@Validated(UpdateMember.class) @RequestBody UserGroup userGroup, @CurrentUser LoginUser user, Errors errors);  }
@Test public void getGroupUsers() throws Exception { Paging<DasGroup> paging = new Paging<>(); paging.setData(new DasGroup()); String requestJson = JSONObject.toJSONString(paging); mockMvc.perform(MockMvcRequestBuilders.post("/member/list") .contentType(MediaType.APPLICATION_JSON_UTF8) .content(requestJson) .accept(MediaType.APPLICATION_JSON_UTF8)) .andExpect(MockMvcResultMatchers.status().isOk()) .andDo(MockMvcResultHandlers.print()); }