Scala depends on Spring Framework

A bit of clickbait in the title. But you can’t run Scala’s hello world without downloading the spring-framework-bom. Why does a programming language depend on an application framework? What is going on here? The observation So you’re looking at Scala for some reason and you go through the getting started guide to install Scala. If you don’t want to deal with the clean up. Starting a docker container and installing Scala there wouldn’t be a bad idea. ...

January 8, 2025

Faster tests by reusing Testcontainers in Spring Boot

One of the aims of The Twelve-Factor App is to reduce the difference between development and production and Testcontainers are a great way to start the exact external services needed for Spring Boot integration tests. However, the existing JUnit 5 Spring Boot integration for Testcontainers comes with a number of downsides. We’ll briefly discuss these and a way to solve them using a ContextCustomizerFactory. Working sources for the examples below can be found at mpkorstanje/blog-spring-boot-test-containers. ...

January 2, 2022