We gaan nu een JUnit test toevoegen.
Stap 1. Voeg JUnit als dependency toe.
<dependencies>
<!-- JUnit Testing lib -->
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.5.2</version>
</dependency>
</dependencies>
Stap 2. Zet de scope op test
<dependency>
<groupId>org.junit.jupiter</groupId>
<artifactId>junit-jupiter-engine</artifactId>
<version>5.5.2</version>
<scope>test</scope><!-- only @ test cycle -->
</dependency>
Stap 3. voer : mvn test uit in de terminal