Our service currently does not have any unit tests. To run the unit tests, you can use the mvn test compile command.
Write unit tests for the Controller and Service classes. JUnit is already included in the project. Make sure to mock out dependencies (mockito is already included as well).
Our service currently does not have any unit tests. To run the unit tests, you can use the
mvn test compile
command.Write unit tests for the
Controller
andService
classes. JUnit is already included in the project. Make sure to mock out dependencies (mockito is already included as well).For Controller testing, read this guide: https://reflectoring.io/spring-boot-web-controller-test/
For Service testing, read this guide: https://reflectoring.io/unit-testing-spring-boot/