With this guide, we'll investigate the powerful @SpringBootTest annotation for writing Spring Boot integration tests. If you're new to testing the Spring
With this blog, you'll get an overview of how unit and integration testing works with Spring Boot. On top of this, you'll
One of the core features of Spring is the event publishing functionality. We can use events to decouple parts of our application
REST Assured is a Java DSL (Domain Specific Langauge) that aims to simplify testing REST APIs. It follows a BDD (Behavior Driven
Starting with Mockito version 3.5.0, we can now mock Java constructors with Mockito. This allows us to return a mock from every
MongoDB is one of the NoSQL databases that Spring Boot offers great testing support for. Like all other test slice annotations from
As a general best practice, we should externalize configuration values for our applications. This allows overriding them per stage and e.g. connect
When working for the first time with Spring, you might encounter several no qualifying bean exceptions when you try to start your
Similar to testing our web layer in isolation with @WebMvcTest, Spring Boot provides a convenient way to test our Spring Boot JPA
Starting with Spring Framework version 5.3 (part of Spring Boot since version 2.4.0) you can perform requests with the WebTestClient against MockMvc.