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:

Level up your interview prep. Join Educative to access 80+ hands-on prep courses.