Java 8
-
Core Java
Default Methods: Java 8’s Unsung Heros
A few weeks ago I wrote a blog saying that developers learn new languages because they’re cool. I still stand…
Read More » -
Core Java
Testing code for excessively large inputs
When writing unit tests we mostly focus on business correctness. We do our best to exercise happy path and all…
Read More » -
Core Java
The lepidopterist’s curse: Playing with java.time
Pop quiz: What will be the output of this little program? …
Read More » -
Enterprise Java
Spring 4.1 and Java 8: java.util.Optional
As of Spring 4.1 Java 8’s java.util.Optional, a container object which may or may not contain a non-null value, is…
Read More » -
Core Java
Clean JUnit Throwable-Tests with Java 8 Lambdas
Recently I was involved in a short online discussion on twitter and google+ which concerned the question why the arrival…
Read More » -
Core Java
Grouping, sampling and batching – custom collectors in Java 8
Continuing first article, this time we will write some more useful custom collectors: for grouping by given criteria, sampling input, batching…
Read More » -
Core Java
Introduction to writing custom collectors in Java 8
Java 8 introduced the concept of collectors. Most of the time we barely use factory methods from Collectors class, e.g. collect(toList()), toSet() or maybe something…
Read More » -
Core Java
Java 8 Friday: More Functional Relational Transformation
In the past, we’ve been providing you with a new article every Friday about what’s new in Java 8. It…
Read More » -
Core Java
JUnit: testing exception with Java 8 and Lambda Expressions
In JUnit there are many ways of testing exceptions in test code, including try-catch idiom, JUnit @Rule, with catch-exception library.…
Read More »