Using Java 8 Optional and Functional interfaces to reduce boilerplate

The code presented here makes judicious use of Optionals, Functionals and the new Streaming interfaces.
It’s all very awesome, and makes me wonder: Java, what took you so long? … More Using Java 8 Optional and Functional interfaces to reduce boilerplate

Annoying Java Popup when Testing Apache Mesos

Running unit tests for Apache Mesos, enabling Java (i.e., omitting the –disable-java flag in configure) you may run into the annoying “You need to install Java” popup, even though you have Java 8 correctly installed. The only workaround I’ve found so far (until I locate where in the test scripts we invoke the wrong version … More Annoying Java Popup when Testing Apache Mesos

Data-driven tests for Spring Data (MongoDB)

When testing a project that uses Spring Data repositories, we may want to insert ‘known-good’ data into arbitrary MongoDB collections, reading it, for example, from JSON iles (typically somewhere in the test/resources subtree). However, some of the data stored in Mongo is in BSON format, which extends the plain JSON format with some Object types … More Data-driven tests for Spring Data (MongoDB)

Code Reviews

As anyone who has worked with me is well aware, I’m a great believer in code reviews – there is much to be said about a number of positive impacts on the project (and the developers’ professional growth too). This is a great article that sums up very well the benefits, as well as a … More Code Reviews