Choosing Between MockMvc and @SpringBootTest for Controller Testing

Philip Riecks 

A common question we receive in the realm of testing Spring Boot application is about the differences between MockMvc and @SpringBootTest with webEnvironment=RANDOM_PORT for HTTP controller testing. Understanding

Read More

Relevant Spring Boot Testing Resources (2024)

Philip Riecks 

This article serves as a comprehensive guide for resources on testing Spring Boot applications in 2024, offering a structured learning path from beginner to advanced levels and advice

Read More

The Most Comprehensive Spring Boot Testing Online Course

Philip Riecks 

In the dynamic world of software development, the importance of robust testing practices cannot be overstated. One area that often poses challenges for developers is testing Spring Boot

Read More

How and Why to Integrate Diffblue Cover Into a CI Pipeline

Philip Riecks 

Working with large and old codebases can be a challenge. While those long-lived applications usually power our core business and highly support the financial situation of our company,

Read More

Spring Boot Testing Best Practices

Philip Riecks 

Let's admit the truth. Testing is often an overlooked aspect of software development and an afterthought in most teams. There are very few developers who actively enjoy writing

Read More

Parallelize Only Java Unit Tests with JUnit 5 and Maven

Philip Riecks 

The more our project and test suite grow, the longer the feedback loop becomes. Fortunately, there are techniques available to speed up our build time. One of such

Read More

Test Thymeleaf Controller Endpoints with Spring Boot and MockMvc

Philip Riecks 

Spring Boot offers excellent testing support for Spring Web MVC controllers. With the help of @WebMvcTest and MockMvc, we can verify our controller endpoints in isolation. This includes

Read More

Spring Boot Testing: MockMvc vs. WebTestClient vs. TestRestTemplate

Philip Riecks 

Spring offers various tools for testing our controller endpoints: MockMvc, WebTestClient, and the TestRestTemplate. While all three candidates serve a similar goal – invoking our HTTP endpoints and

Read More

Amazon SQS Listener Testing with @SqsTest (Spring Cloud AWS)

Philip Riecks 

Similar to a REST API, an Amazon SQS listener is an entry point to our application. While we can easily test our Spring Web MVC controller endpoints either

Read More

Remote Java Developer Technical Hardware and Software Setup

Philip Riecks 

This article describes my working setup (hardware and software) as a remote freelance Java developer. I've been working from either home, co-working places, or cafes for almost two

Read More