In the previous post, I introduced the unit tests for the repository layer of the lead microservice. In this short post, I will do some cleanup, add all the unit tests. Finally, I replaced all the JUNIT asserts with AssertJ asserts. AssserJ is also recommended by the Spring champions over at Pivotal. AssertJ - provides fluent assertions for Java. Testing improvements in Spring Boot . Ok thats it for now. In the next post I will show how to unit test the business / service layer of the lead microservice.
"I have no special talent. I am only passionately curious" - Albert Einstein