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

JUnit 5 Tutorial: Writing Assertions With AssertJ

This blog post describes how we can write assertions with AssertJ. After we have finished this blog post, we: Can get the required dependencies with Maven and Gradle. Know how we can write basic assertions with AssertJ. Understand how we can customize the error message shown when an assertion fails. Can write soft assertions with […] Read more

JUnit 5 Tutorial: Writing Assertions With Hamcrest

This blog post describes how we can write assertions with Hamcrest. After we have finished this blog post, we: Can get the required dependencies with Maven and Gradle. Know how we can write basic assertions with Hamcrest. Understand how we can combine multiple Hamcrest matchers. Can customize the error message shown when an assertion fails. […] Read more

JUnit 5 Tutorial: Writing Assertions With JUnit 5 Assertion API

This blog post describes how we can write assertions by using the JUnit 5 assertion API. After we have finished this blog post, we: Can write basic assertions with JUnit 5. Know how we can customize the error message shown when an assertion fails. Understand how we can run multiple assertions as an assertion group. […] Read more