@Test void whenDeletingAll_return204() throws Exception { MockHttpServletResponse response = deleteAll(); assertThat(response.getStatus(), is(HttpStatus.NO_CONTENT.value())); }
@DeleteMapping() public ResponseEntity<Book> deleteAll() { LOGGER.info("Delete all books"); books.clear(); return ResponseEntity.noContent().build(); }
BookController { @DeleteMapping() public ResponseEntity<Book> deleteAll() { LOGGER.info("Delete all books"); books.clear(); return ResponseEntity.noContent().build(); } }
BookController { @DeleteMapping() public ResponseEntity<Book> deleteAll() { LOGGER.info("Delete all books"); books.clear(); return ResponseEntity.noContent().build(); }  }
BookController { @DeleteMapping() public ResponseEntity<Book> deleteAll() { LOGGER.info("Delete all books"); books.clear(); return ResponseEntity.noContent().build(); }  @PostMapping ResponseEntity<Book> create(@Valid @RequestBody BookRequest request); @GetMapping("/{id}") ResponseEntity<Book> read(@PathVariable UUID id); @GetMapping ResponseEntity<Book> readByTitle(@RequestParam String title); @PutMapping("/{id}") ResponseEntity<Book> update(@PathVariable UUID id,
                                       @Valid @RequestBody BookRequest request); @DeleteMapping("/{id}") ResponseEntity<Book> delete(@PathVariable UUID id); @DeleteMapping() ResponseEntity<Book> deleteAll(); }
BookController { @DeleteMapping() public ResponseEntity<Book> deleteAll() { LOGGER.info("Delete all books"); books.clear(); return ResponseEntity.noContent().build(); }  @PostMapping ResponseEntity<Book> create(@Valid @RequestBody BookRequest request); @GetMapping("/{id}") ResponseEntity<Book> read(@PathVariable UUID id); @GetMapping ResponseEntity<Book> readByTitle(@RequestParam String title); @PutMapping("/{id}") ResponseEntity<Book> update(@PathVariable UUID id,
                                       @Valid @RequestBody BookRequest request); @DeleteMapping("/{id}") ResponseEntity<Book> delete(@PathVariable UUID id); @DeleteMapping() ResponseEntity<Book> deleteAll();  }