This involves the inclusion of suitable testing dependencies in your project. Open the Place Reviewer project's pom.xml file and add the following dependencies:
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-core</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
In the coming sections, we are going to learn how to write tests with jUnit and Hamcrest. JUnit is a testing framework for the Java programming language and Hamcrest is a library that provides matchers, which can be combined to create meaningful expressions of intent.