@Test public void grantUserTokenPost() { }
public ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { return new ResponseEntity<InlineResponse200>(objectMapper.readValue("{\n" + " \"status\" : \"status\",\n" + " \"token\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n" + "}", InlineResponse200.class), HttpStatus.NOT_IMPLEMENTED); } catch (IOException e) { log.error("Couldn't serialize response for content type application/json", e); return new ResponseEntity<InlineResponse200>(HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<InlineResponse200>(HttpStatus.NOT_IMPLEMENTED); }
GrantUserTokenApiController implements GrantUserTokenApi { public ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { return new ResponseEntity<InlineResponse200>(objectMapper.readValue("{\n" + " \"status\" : \"status\",\n" + " \"token\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n" + "}", InlineResponse200.class), HttpStatus.NOT_IMPLEMENTED); } catch (IOException e) { log.error("Couldn't serialize response for content type application/json", e); return new ResponseEntity<InlineResponse200>(HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<InlineResponse200>(HttpStatus.NOT_IMPLEMENTED); } }
GrantUserTokenApiController implements GrantUserTokenApi { public ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { return new ResponseEntity<InlineResponse200>(objectMapper.readValue("{\n" + " \"status\" : \"status\",\n" + " \"token\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n" + "}", InlineResponse200.class), HttpStatus.NOT_IMPLEMENTED); } catch (IOException e) { log.error("Couldn't serialize response for content type application/json", e); return new ResponseEntity<InlineResponse200>(HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<InlineResponse200>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  GrantUserTokenApiController(ObjectMapper objectMapper, HttpServletRequest request); }
GrantUserTokenApiController implements GrantUserTokenApi { public ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { return new ResponseEntity<InlineResponse200>(objectMapper.readValue("{\n" + " \"status\" : \"status\",\n" + " \"token\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n" + "}", InlineResponse200.class), HttpStatus.NOT_IMPLEMENTED); } catch (IOException e) { log.error("Couldn't serialize response for content type application/json", e); return new ResponseEntity<InlineResponse200>(HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<InlineResponse200>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  GrantUserTokenApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body); }
GrantUserTokenApiController implements GrantUserTokenApi { public ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body) { String accept = request.getHeader("Accept"); if (accept != null && accept.contains("application/json")) { try { return new ResponseEntity<InlineResponse200>(objectMapper.readValue("{\n" + " \"status\" : \"status\",\n" + " \"token\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\"\n" + "}", InlineResponse200.class), HttpStatus.NOT_IMPLEMENTED); } catch (IOException e) { log.error("Couldn't serialize response for content type application/json", e); return new ResponseEntity<InlineResponse200>(HttpStatus.INTERNAL_SERVER_ERROR); } } return new ResponseEntity<InlineResponse200>(HttpStatus.NOT_IMPLEMENTED); } @org.springframework.beans.factory.annotation.Autowired  GrantUserTokenApiController(ObjectMapper objectMapper, HttpServletRequest request); ResponseEntity<InlineResponse200> grantUserTokenPost(@ApiParam(value = "") @Valid @RequestBody GrantInfo body);  }