I released five new sample lessons from my Test With Spring course: Introduction to Spock Framework

Screencast: Unit Testing of Spring MVC Controllers – Configuration

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.

Watch The Screencast



About the Author

Petri Kainulainen is passionate about software development and continuous improvement. He is specialized in software development with the Spring Framework and is the author of Spring Data book.

About Petri Kainulainen →

6 comments… add one
  • Cool stuff
    Go ahead with such video tutorials

    Reply
    • 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.

      Reply
  • Thank you for your effort and the video tutorials.

    Reply
    • You are welcome! I am happy to hear that these tutorials were useful to you.

      Reply
  • Nice article Petri. Thnx.

    Reply
    • You are welcome!

      Reply

Leave a Comment