Category Archives : Spotlight

Home  >>  Spotlight

JUnit 5 – A First Look at the Next Generation of JUnit

On February 18, 2016, Posted by , In JUnit,Spotlight, By , , With 3 Comments

In the beginning of February, the JUnit 5 (aka JUnit Lambda) team has published an alpha release. Since JUnit 4 is among the most used items in my toolbox I thought it might be worth to have a look at the next major release. I took the latest build for a spin…

Announcing Extras for Eclipse

Over the last months, I wrote some extensions for the Eclipse IDE that I found were missing and could be implemented with reasonable effort. The outcome is Extras for Eclipse, a collection of small extensions for the Eclipse IDE, which include a launch dialog, a JUnit status bar, a launch…

From Arrays to Streams and Back with Java 8

On November 16, 2015, Posted by , In Common,Spotlight, By ,,,, , With 4 Comments

Not long ago we upgraded some Eclipse plug-in projects to Java 8. And never looked back since. Among many other things, filtering, mapping, and finding elements in collections has become so much easier and more concise with lambdas and the streams API. Nothing new so far for the most of…

What the Heck Is Mutation Testing?

On October 5, 2015, Posted by , In JUnit,Spotlight, With 8 Comments

In recent times, I came repeatedly upon the term mutation testing. Since the word is that this approach is able to detect test safety net gaps in a way which goes beyond code coverage, I took my time to catch up on the topic and gave it a try. This…

Getting Java Event Notification Right

On March 11, 2015, Posted by , In Common,Spotlight, By ,, , With 6 Comments

Implementing the observer pattern to provide Java event notification seems to be a straight forward thing to do. However, there are some pitfalls one easily can run into. Here comes an explanation of common mistakes I carelessly have produced myself on various occasions… Java Event Notification Let’s start with a…

How to Map Distinct Value Types Using Java Generics

On March 4, 2015, Posted by , In Common,Spotlight, By ,, , With 6 Comments

Occasionally the average developer runs into a situation where he has to map values of arbitrary types within a particular container. However, the Java collection API provides container related parameterization only. Which limits the type safe usage of HashMap for example to a single value type. But what if you…