In this book, we started developing a simple service in Chapter 2, Writing Your First Cloud-Native Application, in Spring Boot to get you excited about cloud development. However, real development follows a different style of best practice.
Writing test cases before development
TDD
A project starts with understanding the requirements and writing test cases that validate the requirements. Since the code does not exist at this point, the test case will fail. Then, the code is written that passes the test case. This process iterates till the test cases and the required code are complete to realize the business functionality. Kent Beck has an excellent book on this subject, Test Driven Development by Example. In...