This is basically for study, the idea was learn about tdd and start code that way. Then use in inside projects of HBSIS.
At first, we need to write a test to return a httpstatus of 404. Then we start to create our controller.
Here comes how to test the not found exception.
And thats basically the idea. First make the test, and start to develop your application
Testing each line of code.
The 'CarWebTestClientTest' is used to test the controller directly with spring security. If the application doesn't have spring security dependency, is not necessary to wrote this peace of test.
Coding like this way, make us test each line of code and make sure that is all tested and implemented.
ps: That is a small project, but starting with the tests, in the future will help to maintain the code clean and tested.




