Blog

Tactical Design by Example - Using Kotlin and Spring Boot (Part 8) - Sliced Tests

Integration Testing with Spring Boot comes at the cost of constructing the Application Context. This can make integration tests really slow. There are several strategies to deal with this. Strategy: Using a single context Application Context caching In the one camp, there are people who like to re-use an Application Context as often as possible. The extreme case would be to use just one… [read more →]

Tactical Design by Example - Using Kotlin and Spring Boot (Part 7) - Testing 101

After having fun with ArchUnit last week, I wanted to explore testing a little more. Let's revisit some basics this week. I will be focusing on integration testing in the next blog post, especially on Spring Boot test slices. How Hexagon Architecture helps with testing The Hexagon Architecture not only structures our application, but also helps us to distinguish between more valuable and more… [read more →]

Tactical Design by Example - Using Kotlin and Spring Boot (Part 6) - ArchUnit

Today I experimented a little with ArchUnit, in order to validate that an application follows our team's interpretation of Hexagon Architecture. I wanted to ensure that repositories, consumers and controllers are in the corresponding adapter package application services are in the application service package commands and queries are in the incoming port package the outgoing port package only… [read more →]