Writing Unit Tests for "Normal" Spring MVC Controllers
This example application demonstrates how we can write unit tests for "normal" Spring MVC controllers by using JUnit 5 and the Spring MVC Test framework.
Running Unit Tests With Maven
You can run unit tests with Maven by running the following command at command prompt:
mvn clean test