REST Assured is a Java DSL (Domain Specific Langauge) that aims to simplify testing REST APIs. It follows a BDD (Behavior Driven

Read More

Starting with Mockito version 3.5.0, we can now mock Java constructors with Mockito. This allows us to return a mock from every

Read More

MongoDB is one of the NoSQL databases that Spring Boot offers great testing support for. Like all other test slice annotations from

Read More

Sending emails is a common responsibility of enterprise applications. With the Spring Boot Starter Mail dependency, this becomes a trivial task. But

Read More

Fetching data via HTTP from a remote system is a task almost every application has to solve. Fortunately, there are mature Java

Read More

As a general best practice, we should externalize configuration values for our applications. This allows overriding them per stage and e.g. connect

Read More

When working for the first time with Spring, you might encounter several no qualifying bean exceptions when you try to start your

Read More

Similar to testing our web layer in isolation with @WebMvcTest, Spring Boot provides a convenient way to test our Spring Boot JPA

Read More

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.

Read More

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