Welcome!

... 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.

 

Posted by Steven

This is what I learned in May 2020:

Posted by Steven

Recently, I finished "Influence" by Robert B. Cialdini.  I like reading books about Psychology and "Influence" both is comprehensible and useful. In this article, I want to highlight some of the most important take-aways I found to be of relevance to my life.

Posted by Steven

Recently, I wanted to keep the change history of entities saved via Hibernate and also have a versioned database. Hence, I used Hibernate Envers and Liquibase.

The tables for envers, both the revinfo table and the _AUD tables for each entity, have to be included in the changeset of Liquibase:

Posted by Steven

Yesterday, I learned how to verify the method parameter for multiple method calls in Mockito. My pair-programmer and I wrote code that send multiple messages to an Amazon SQSClient. We wanted to test if a) all expected send-calls were executed and b) if all of those had the correct argument.

On SO, we found the solution (rewritten for better understanding):

Posted by Steven

Recently, I added Spring HATEOAS to the IT Hub. Refactoring the controller to return RepresentationModel and CollectionModel, I noticed something odd. When returning a collection of items, in the returned JSON, the links for each item were represented under "links". When returning a single item, the links for this item were represented under "_links". This article briefly explains the reasons for this and how to fix it.

Posted by Steven

This is what I learned in April 2020:

Pages