Java

Assumptions and Conditional Test Execution with JUnit 4 and 5

Sometimes, a test should only be run under certain conditions. One such case are integration tests which depend on a certain external system.

Read more

Robust Java Object Mapping With Minimal Testing Overhead Using reMap

Object mapping is a necessary and often unloved evil in software development projects. To communicate between layers of your application, you have to create and test mappers between a multitude of types, which can be a very cumbersome task, depending on the mapper library that is used.

Read more

A Guide to Formatting Code Snippets in Javadoc

Sometimes you want to add code snippets to our Javadoc comments, especially when developing an API of some kind. But how do you mark the code snippet so that it will be rendered correctly in the final Javadoc HTML, especially when special characters like '<', '>' and '@' are involved?

Read more

Tool-based Database Refactoring: Flyway vs. Liquibase

In a previous blog post I discussed the term “database refactoring” and some concepts that allow database refactoring to be supported by tools with the result of having a database schema that is versioned just like your software is.

Read more

Digital Signature in Java

Often you come across the requirement to validate integrity and authenticity of data that was sent digitally. Digital signatures are the solution to this requirement.

Read more

A Random Pitfall

From time to time we need a randomly generated Number in Java. In this case we are normally using java.util.Random which provides a stream of pseudo generated Numbers.

Read more