Building the sample application

Before we start to work on automated tests, we need to prepare a sample business logic for testing purposes. We may use the same example system from the previous chapters, but it has to be modified a little. Until now, we have never used an external data source for storing and collecting test data. In this chapter, it would be helpful to do this in order to illustrate how the different strategies approach the issue of persistence testing. Now, each service has its own database although, generally, it doesn't really matter which database is chosen. There is a large choice of solutions supported by Spring Boot, including both relational and NoSQL databases. I have decided to use Mongo. Let us remind ourselves ...

Get Mastering Spring Cloud now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.