Spring Boot

Testing JPA Queries with Spring Boot and @DataJpaTest

Aside from unit tests, integration tests play a vital role in producing quality software. A special kind of integration test deals with the integration between our code and the database.

Read more

Testing MVC Web Controllers with Spring Boot and @WebMvcTest

In this second part of the series on testing with Spring Boot, we’re going to look at web controllers. First, we’re going to explore what a web controller actually does so that we can build tests that cover all of its responsibilities.

Read more

Unit Testing with Spring Boot

Writing good unit tests can be considered an art that is hard to master. But the good news is that the mechanics supporting it are easy to learn.

Read more

Testing a Spring Message Producer and Consumer against a Contract with Pact

Among other things, testing an interface between two systems with (consumer-driven) contract tests is faster and more stable than doing so with end-to-end tests.

Read more

Testing a Spring Boot REST API against a Contract with Spring Cloud Contract

Consumer-driven contract tests are a technique to test integration points between API providers and API consumers without the hassle of end-to-end tests (read it up in a recent blog post).

Read more

Testing a Spring Boot REST API against a Consumer-Driven Contract with Pact

Consumer-driven contract tests are a technique to test integration points between API providers and API consumers without the hassle of end-to-end tests (read it up in a recent blog post).

Read more