Table of Contents
What is unit testing?
Unit testing is a form of software testing by which isolated source code is tested to validate expected behavior.
Unit testing describes tests at the unit-level to contrast with integration or system-level testing.
Dependencies used in Spring
pom.xml
We have to add a Maven dependency to run unit tests locally. You can see the link below for the specific dependency.
https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-test/3.4.3
Coverage code check in IntelliJ
Screenshots…
Controller tests
asdfasdf
Service test
asdfasdf
Repository test
asdfasdfadf