JUnit 5 tutorial, part 2: Unit testing Spring MVC with JUnit 5

See the original posting on JavaWorld

Spring MVC is one of the most popular Java frameworks for building enterprise Java applications, and it lends itself very well to testing. By design, Spring MVC promotes the separation of concerns and encourages coding against interfaces. These qualities, along with Spring’s implementation of dependency injection, make Spring applications very testable.

This tutorial is the second half of my introduction to unit testing with JUnit 5. I’ll show you how to integrate JUnit 5 with Spring, then introduce you to three tools that you can use to test Spring MVC controllers, services, and repositories.

To read this article in full, please click here