This blog post provides an introduction to the request matching support of WireMock. After we have finished this blog post, we: Understand how request matching works. Know how we can compare the actual HTTP request method with the expected request method. Can compare the actual request URL with the expected request URL. Let's start by […] Read More
Programming
jOOQ Tips: Implementing a Read-Only One-to-Many Relationship With SimpleFlatMapper
This blog post describes how we can implement a read-only one-to-many relationship with jOOQ and a library called SimpleFlatMapper. Read More
WireMock Tutorial: Configuration
This blog post describes how we can configure the system under test when we want to use WireMock with JUnit 5 and we don't want to use a custom JUnit 5 extension. After we have finished this blog post, we: Understand how we can configure the used WireMock server. Know how we can start the […] Read More
WireMock Tutorial: Introduction
This blog post gives a quick introduction to WireMock. After we have finished this blog post, we can identify its key features, we know when we should use it, and we can get the required dependencies with Maven and Gradle. Let's get started. What Is WireMock? WireMock is a tool that can mimic the behavior […] Read More
Spring From the Trenches: Cleaning Up Our Test Code With HTTP Request Builders
The Spring MVC Test framework helps us to write clean unit and integration tests for our Spring MVC controllers. I a big fan of Spring MVC Test framework, and I like to think that I write clean tests. However, a few months ago my colleague mentioned that my tests seem to have a lot of […] Read More
Spring From the Trenches: Disabling Cookie Management of Apache HTTP Client 4 and RestTemplate
Last week I received a bug report from an API provider. The bug report stated that our application bypassed the load balancer of the API provider because the Apache HTTP client didn't ignore the cookies set by the load balancer. This was a huge problem to us because this bug could cause unnecessary errors when […] Read More