Technical requirements
The final code for this chapter can be found at https://github.com/PacktPublishing/Test-Driven-Development-with-Java/tree/main/chapter04.
To code along – which I highly recommend – we need to set up our development environment first. This will use the excellent JetBrains IntelliJ Java Integrated Development Environment (IDE), a free-of-charge Java SDK from Amazon, and some libraries to help us with writing our tests and including the libraries in our Java project. We will assemble all our development tools in the next section.
Preparing our development environment
For this project, we will be using the following tools:
- IntelliJ IDEA IDE 2022.1.3 (Community Edition) or higher
- Amazon Corretto Java 17 JDK
- The JUnit 5 unit test framework
- The AssertJ fluent assertions framework
- The Gradle dependency management system
We will begin by installing our Java IDE, the JetBrains IntelliJ IDE Community Edition, before...