... to the digital home of Steven Schwenke.

This site is supposed to be a showcase for my thoughts about software engineering, less a personal homepage. If you want to know more about me, invite me to a beer.

Also, have a look at my book "Developer on the Stage".


Posted by Steven

This is what I learned in February 2021:

Posted by Steven

I'm a huge fan of Spring MVC Tests and already wrote some articles about this topic. If you are new to the topic, here's the official Spring documentation. A coworker discovered a features previously unknown to me that allows to test for the size of JSON objects returned by an endpoint like this:

Posted by Steven

This is what I learned in January 2021:

Posted by Steven

Recently, I repeated learning that long-term technical debt is a bitch. Some time ago, I performed an extensive refactoring in one of my main projects. It was necessary to change some architectural decisions that were not able to support newer requirements. This significantly changed the architecture and affected a lot of the code. Despite the amount of modifications necessary, a coworker and me plowed through and finished the task. In doing so, we realized even more code rot, but nothing too serious.

Posted by Steven

ArchUnit can be used to test dependencies between packages in Java. I use it to test that application slices do not depend on each other, but are disjunct:

Posted by Steven

This article is about why annotating the Spring application class with @ComponentScan may cause problems when also using Spring Web MVC Test.

The code can be found here.

General Setup

The demo application is a simple Spring Boot application with a component scan directly in the application class: