When you start testing your Spring Boot application sooner or later you'll stumble over @Mock and @MockBean. Both annotations create mock objects

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

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

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

If your Spring Boot application integrates AWS services like S3, SNS, or SQS, you might wonder how to write effective integration tests.

Read More

With Spring Boot, you only need one dependency to have a solid testing infrastructure: Spring Boot Starter Test. Using this starter, you'll

Read More