@Test void makeOrder() { ResponseEntity<ResponseResult> responseEntity = restTemplate.getForEntity(APP_URL + "/order/create", ResponseResult.class); Assertions.assertEquals(HttpStatus.OK, responseEntity.getStatusCode()); ResponseResult responseResult = responseEntity.getBody(); Assertions.assertTrue(responseResult.isSuccessful()); }
@GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); }
OrderController { @GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); } }
OrderController { @GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); }  }
OrderController { @GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); }  @GetMapping("/create") ResponseResult makeOrder(); }
OrderController { @GetMapping("/create") public ResponseResult makeOrder(){ return orderService.orderWithVersion(new OrderRequest()); }  @GetMapping("/create") ResponseResult makeOrder();  }