Technical requirements
The final code for this chapter can be found at https://github.com/PacktPublishing/Test-Driven-Development-with-Java/tree/main/chapter14.
Installing the Postgres database
We will be using the Postgres database in this chapter, which needs installation. To install Postgres, follow these steps:
- Go to the following web page: https://www.postgresql.org/download/.
- Follow the installation instructions for your operating system.
The code has been tested with version 14.5. It is expected to work on all versions.
With the setup completed, let’s get started implementing our database code. In the next section, we will use the DBRider framework to create a database integration test.