Commonly used tools and technologies
Let’s now discuss the tools and technologies that are commonly used for testing applications running in containers, such as Docker, Kubernetes, and continuous integration and delivery (CI/CD) platforms.
Implementing a sample component
In this section, we want to implement a sample component that we are later going to use to demonstrate how we can write and execute tests for, and, specifically, how we can combine the advantage of automated tests and the use of Docker containers. We will implement the sample component using recent versions of Java and Spring Boot.
This sample component represents a simple REST API with some CRUD logic behind it. The tasks of creating and managing lists of animal species and associated races are simple enough to not warrant more complicated modeling. For simplicity, we are working with the in-memory database H2. This means that upon each restart of the component, the previous data is wiped out. If you...