When you start testing your Spring Boot application sooner or later you'll stumble over @Mock and @MockBean. Both annotations create mock objects
Want to start a religious discussion? Start asking your teammates whether or not you should mock static method calls. It's debatable if
Did you ever found yourself saying: I usually ignore testing my Spring Web MVC controller endpoints because the security setup is tricky.
Spring Boot offers great support to test different slices (web, database, etc.) of your application. This allows you to write tests for
Recently I introduced Testcontainers for a Kotlin based Spring Boot application. I jumped right into the setup and immediately ran into an
WebSockets allow establishing a full-duplex, two-way communication between the client and the server. With Spring WebSocket, we can bootstrap our WebSocket application
In one of the last blog post, I demonstrated how to test the Spring RestTemplate with @RestClientTest. With this elegant solution, you
Testcontainers is now for almost a year part of my core testing libraries set. It allows you to control Docker containers for
If your Spring Boot application integrates AWS services like S3, SNS, or SQS, you might wonder how to write effective integration tests.
With Spring Boot, you only need one dependency to have a solid testing infrastructure: Spring Boot Starter Test. Using this starter, you'll