Spring MVC

Unit Testing of Spring MVC Controllers: "Normal" Controllers

This blog post 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. The first part of this tutorial described how […] Read more

Screencast: Unit Testing of Spring MVC Controllers - Configuration

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 […] Read more

Unit Testing of Spring MVC Controllers: Configuration

This blog post 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. Writing unit tests for Spring MVC controllers has […] Read more

Spring From the Trenches: Adding Validation to a REST API

I am a bit ashamed to admit this but until yesterday, I had no idea that I can add validation to a REST API by using the @Valid and the @RequestBody annotations. This was not working in Spring MVC 3.0 and for some reason I had not noticed that the support for this was added […] Read more

Integration Testing of Spring MVC Applications: Migrating to Spring 3.2

When Spring Framework 3.2 was released, spring-test-mvc was officially included in this release under the name Spring MVC Test Framework. Although many things remained the same, there are some changes that might cause confusion when we are migrating our applications from Spring Framework 3.1 to 3.2. This blog entry was written to help us to […] Read more