Testing

Writing Unit Tests for a Spring MVC REST API: Returning a List

The previous part of my Spring MVC Test tutorial described how we can write unit tests for Spring MVC controllers which return the information of a single item as JSON. This blog post provides more information about writing unit tests for a Spring MVC REST API. To be more specific, this blog post describes how […] Read more

The previous part of my Spring MVC Test tutorial described how we can send HTTP requests to the system under test and write assertions for the response returned by the tested controller method. This blog post describes how we can use the information provided by the previous part of this tutorial when we are writing […] Read more

Writing Unit Tests for a Spring MVC REST API: Configuration

Earlier we learned that we should configure the system under test by using the standalone configuration when we are writing unit tests for Spring MVC controllers. In this blog post, we will put theory into practice. This blog post describes how we can use the standalone configuration when we are writing unit tests for Spring […] Read more

Writing Unit Tests for Spring MVC Controllers: Forms

The previous part of my Spring MVC Test tutorial described how we can write unit tests for a Spring MVC controller that renders a list. This blog post provides more information about writing unit tests for Spring MVC controllers which insert data into the used database. To be more specific, this blog post describes how […] Read more

Writing Unit Tests for Spring MVC Controllers: Rendering a List

The previous part of my Spring MVC Test tutorial described how we can write unit tests for Spring MVC controllers which render the information of a single item. This blog post provides more information about writing unit tests for Spring MVC controllers which render a view. To be more specific, this blog post describes how […] Read more

Writing Unit Tests for Spring MVC Controllers: Rendering a Single Item

The previous part of my Spring MVC Test tutorial described how we can send HTTP requests to the system under test and write assertions for the response returned by the tested controller method. This blog post describes how we can use the information provided by the previous part of this tutorial when we are writing […] Read more