This video is outdated! If you want to learn how you can write unit tests for Spring MVC controllers, you should take a look at my updated Spring MVC Test tutorial. It describes how you can write unit tests for Spring MVC controllers with JUnit 5.
This is the first part of my video tutorial which describes the unit testing of Spring MVC controllers.
Before we can get our hands dirty and start writing the actual unit tests, we have to learn how we can configure unit tests which use the Spring MVC Test framework.
That is why I created this screencast.
This screencast describes how we can
- Get the required dependencies with Maven.
- Configure our application context in a such way that we can reuse parts of its configuration in our tests.
- Configure our unit tests by using either the standalone configuration or the WebApplicationContext based configuration.
Cool stuff
Go ahead with such video tutorials
Thank you for your feedback.
I will probably try to add more interactive elements and reduce the number of slides to minimum because I feel that watching slides can be a bit boring. Let's see how that works out.
No, you have it just right.
Really, this stuff is great. Thank you.
Thank you for your effort and the video tutorials.
You are welcome! I am happy to hear that these tutorials were useful to you.
Nice article Petri. Thnx.
You are welcome!