Spring Boot, Mockito, Unit Testing, Junit 5, Rest Api.
books) { try { Books savedBook = this.bookService.saveBook(books); return ResponseEntity.ok(savedBook); } catch (Exception exception) { return ResponseEntity.internalServerError().body("Exception while saving books"); } } @GetMapping(value = "/books/{id}", produces =