Adding necessary testing dependencies to the project

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 ...

Get Kotlin Programming By Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.