Cache, Spring Boot, Spring Data

Spring cache and integration testing

Using caches in a Spring application is relatively easy. It makes the overall performance better, but opens some exciting problems when it comes to integration testing the application.  Adding caching behavior to a functionality without properly thinking over the consequences, is one of the biggest mistakes, a beginner programmer can make. You must have full… Continue reading Spring cache and integration testing

JUnit, Spring, Spring Boot

Create Spring service used only in test environment

Create Spring service used only in test environment In my project, we use three different environments for running the application. Production SIT (system integration) Local development In the production environment thee is a third party system, that authenticates the user and automatically adds a header value to the request. I wanted to implement a feature,… Continue reading Create Spring service used only in test environment