Spring - TestTransaction

Spring comes with great support for writing unit and integration tests. However, there is one detail I wanted to point out today making the life of developers easier in...

Java 9 - Modules

Our previous Java 9 articles (0, 1, 2) dealt with rather small Java 9 features. Today we will have a look at the big elephant in the...

Java 9 - StackWalker API

Java 9 introduces a new efficient API for walking stack traces besides the already existing, and for Java developers well-known, Throwable::getStackTrace and Thread::getStackTrace methods. The getStackTrace...

Java 9 - Optional Additions

In Java 8, the java.util.Optional class was introduced (JavaDoc) as a way to define method return types where there is a need to return no result, and where...

Java 9 - JShell

As I have been developing in Groovy for quite some time (and still enjoy it whenever I get a chance to use it), I always was quite a fan of...

Mocking JSF's FacesContext

When you are in a JSF application and you want to write tests for your view beans, you will very likely come into the situation of having to mock JSF’s...

Query by Example in Spring Data

We are currently using Spring Data JPA in a project and really love it. Lately we came across a feature we sort of oversaw so far in Spring Data’s excellent...