Core Java
-

Separating Integration Tests from Unit Tests Using Maven Failsafe & JUnit @Category
Why Unit Tests Should Run Separately From Integration Tests TDD at the Unit Testing level is fairly straight-forward, since classes in unit…
Read More » -

How to Translate SQL GROUP BY and Aggregations to Java 8
I couldn’t resist. I have read this question by Hugo Prudente on Stack Overflow. And I knew there had to…
Read More » -

Fork/Join Framework vs. Parallel Streams vs. ExecutorService: The Ultimate Fork/Join Benchmark
How does the Fork/Join framework act under different configurations? Just like the upcoming episode of Star Wars, there has been…
Read More » -

Given When Then in Java
tl;dr you can use labels to clarify a given-when-then style of testing. What is given-when-then? given-when-then is a commonly used…
Read More » -

Fine points of protection
In the article Some Sentences about Java I wrote that “Protected methods and fields can be used from classes in…
Read More » -

The Decorator Pattern With Java 8
In a recent post I described how the decorator pattern saved my day. I gave a small code snippet which…
Read More » -

Java 8 Functional Programming: Lazy Instantiation
Singletons often instantiate themselves lazily, and sometimes, if the object is heavy enough, class fields can be instantiated lazily. Generally,…
Read More » -

Transforming Collections with Decorators
The Decorator Pattern Ever since first learning the programming design patterns, the decorator pattern has been my favorite. It seemed…
Read More » -

Using Java 8 to Prevent Excessively Wide Logs
Some logs are there to be consumed by machines and kept forever. Other logs are there just to debug and…
Read More »



