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