Writing a Unit Test

Create a new Spring Boot project using the Spring Initializr. You can provide io.datajek as "Group" and unittesting as "Artifact. There is no need to add any dependency. The spring-boot-starter-test dependency is automatically included in the Spring Boot project.

The pom.xml file of the project shows the dependency as follows:

Get hands-on with 1400+ tech skills courses.