@Test public void problemStatus() { }
public ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { BasicResponse basicResponse = new BasicResponse(); try { problemStatusService.updateProblemStatus(body); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.OK); } catch (ProblemStatusServiceImpl.ProblemStatusArgumentException e) { basicResponse.setCode("error"); basicResponse.setData(e.getMessage()); e.printStackTrace(); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); }
ProblemStatusApiController implements ProblemStatusApi { public ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { BasicResponse basicResponse = new BasicResponse(); try { problemStatusService.updateProblemStatus(body); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.OK); } catch (ProblemStatusServiceImpl.ProblemStatusArgumentException e) { basicResponse.setCode("error"); basicResponse.setData(e.getMessage()); e.printStackTrace(); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } }
ProblemStatusApiController implements ProblemStatusApi { public ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { BasicResponse basicResponse = new BasicResponse(); try { problemStatusService.updateProblemStatus(body); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.OK); } catch (ProblemStatusServiceImpl.ProblemStatusArgumentException e) { basicResponse.setCode("error"); basicResponse.setData(e.getMessage()); e.printStackTrace(); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  ProblemStatusApiController(ObjectMapper objectMapper, HttpServletRequest request); }
ProblemStatusApiController implements ProblemStatusApi { public ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { BasicResponse basicResponse = new BasicResponse(); try { problemStatusService.updateProblemStatus(body); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.OK); } catch (ProblemStatusServiceImpl.ProblemStatusArgumentException e) { basicResponse.setCode("error"); basicResponse.setData(e.getMessage()); e.printStackTrace(); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  ProblemStatusApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<StatusInfoList> getProblemStatus(@ApiParam(value = "") @Valid @RequestBody ProblemIdList body); ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body); }
ProblemStatusApiController implements ProblemStatusApi { public ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { BasicResponse basicResponse = new BasicResponse(); try { problemStatusService.updateProblemStatus(body); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.OK); } catch (ProblemStatusServiceImpl.ProblemStatusArgumentException e) { basicResponse.setCode("error"); basicResponse.setData(e.getMessage()); e.printStackTrace(); return new ResponseEntity<BasicResponse>(basicResponse, HttpStatus.BAD_REQUEST); } } return new ResponseEntity<BasicResponse>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  ProblemStatusApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<StatusInfoList> getProblemStatus(@ApiParam(value = "") @Valid @RequestBody ProblemIdList body); ResponseEntity<BasicResponse> problemStatus(@ApiParam(value = "") @Valid @RequestBody StatusInfo body);  }