Are you having trouble writing automated tests for your Spring or Spring Boot web app? If so, take a look at my Test With Spring course.

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



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