@Test public void userInfoPost() { }
public ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { userInfoService.addUserInfo(body); return new ResponseEntity<BasicResponse>(new BasicResponse(), HttpStatus.OK); } catch (UserInfoServiceImpl.UserInfoServiceException e) { BasicResponse basicResponse = new BasicResponse(); basicResponse.setCode("error"); HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("message", e.getMessage()); basicResponse.setData(stringObjectHashMap); e.printStackTrace(); return new ResponseEntity<>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); }
UserInfoApiController implements UserInfoApi { public ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { userInfoService.addUserInfo(body); return new ResponseEntity<BasicResponse>(new BasicResponse(), HttpStatus.OK); } catch (UserInfoServiceImpl.UserInfoServiceException e) { BasicResponse basicResponse = new BasicResponse(); basicResponse.setCode("error"); HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("message", e.getMessage()); basicResponse.setData(stringObjectHashMap); e.printStackTrace(); return new ResponseEntity<>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } }
UserInfoApiController implements UserInfoApi { public ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { userInfoService.addUserInfo(body); return new ResponseEntity<BasicResponse>(new BasicResponse(), HttpStatus.OK); } catch (UserInfoServiceImpl.UserInfoServiceException e) { BasicResponse basicResponse = new BasicResponse(); basicResponse.setCode("error"); HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("message", e.getMessage()); basicResponse.setData(stringObjectHashMap); e.printStackTrace(); return new ResponseEntity<>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  UserInfoApiController(ObjectMapper objectMapper, HttpServletRequest request); }
UserInfoApiController implements UserInfoApi { public ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { userInfoService.addUserInfo(body); return new ResponseEntity<BasicResponse>(new BasicResponse(), HttpStatus.OK); } catch (UserInfoServiceImpl.UserInfoServiceException e) { BasicResponse basicResponse = new BasicResponse(); basicResponse.setCode("error"); HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("message", e.getMessage()); basicResponse.setData(stringObjectHashMap); e.printStackTrace(); return new ResponseEntity<>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  UserInfoApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body); }
UserInfoApiController implements UserInfoApi { public ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { userInfoService.addUserInfo(body); return new ResponseEntity<BasicResponse>(new BasicResponse(), HttpStatus.OK); } catch (UserInfoServiceImpl.UserInfoServiceException e) { BasicResponse basicResponse = new BasicResponse(); basicResponse.setCode("error"); HashMap<String, Object> stringObjectHashMap = new HashMap<>(); stringObjectHashMap.put("message", e.getMessage()); basicResponse.setData(stringObjectHashMap); e.printStackTrace(); return new ResponseEntity<>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  UserInfoApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<BasicResponse> userInfoPost(@ApiParam(value = "") @Valid @RequestBody UserInfo body);  }