Good old web tests – extremely valuable, sometimes hard to maintain, and annoying once they get flaky. If you are familiar with

Read More

Want to start a religious discussion? Start asking your teammates whether or not you should mock static method calls. It's debatable if

Read More

Did you ever found yourself saying: I usually ignore testing my Spring Web MVC controller endpoints because the security setup is tricky.

Read More

Spring Boot offers great support to test different slices (web, database, etc.) of your application. This allows you to write tests for

Read More

Recently I introduced Testcontainers for a Kotlin based Spring Boot application. I jumped right into the setup and immediately ran into an

Read More

Nothing is more tiresome than long feedback cycles due to slow builds. I've recently invested one day to improve the integration test

Read More

WebSockets allow establishing a full-duplex, two-way communication between the client and the server. With Spring WebSocket, we can bootstrap our WebSocket application

Read More

Writing your first test with JUnit 5 is straightforward. Annotate your test method with @Test and verify the result using assertions. Apart

Read More

In one of the last blog post, I demonstrated how to test the Spring RestTemplate with @RestClientTest. With this elegant solution, you

Read More

Testcontainers is now for almost a year part of my core testing libraries set. It allows you to control Docker containers for

Read More