Deleting Entities - TDD CRUD API with Spring Boot 2.2, Java 11 and H2

preview_player
Показать описание

This is the fifth video of the series: CRUD application with Spring Boot 2.2, Java 11, and H2 series and explaining how to create the REST endpoint deleting entities in TDD-style (Test-Driven-Development).

Рекомендации по теме
Комментарии
Автор

Nice Videos [1-5] on CRUD Spring Boot Application (TDD), completed, Thank you, looking forward

CrusadeVoyager
Автор

@rieckpil thank you for this tutorials i learned it a lot from them

Nico-zrqy
Автор

Few questions

a) For the BookControllerTest, why can't we use @SpringBootTest?

b) So it's common to have delete in IntegrationTest and not UnitTest?

c) Why in Test, you tested OK and NOT_FOUND together? Isn't it better to break into 2 tests?

d) I presume for delete in real scenario, I also need to check if bookById is empty, then throw BookNotFoundException similar to update? If not, if i search for /42, I get 500 status code - internal server error.

Thanks.

ericchua