We already know quite a lot about the next version of Java’s most ubiquitous testing framework. Let’s now look at the JUnit 5 extension model, which will allow libraries and frameworks to add implement their own additions to JUnit. Most of what you will read here and more can be found in the emerging JUnit […]

Read more

Now that we know how to set JUnit 5 up and write some tests with it, let’s take a look under the covers. In this post we’ll discuss the JUnit 5 architecture and the reasons why it turned out the way it did. Overview This post is part of a series about JUnit 5: Setup […]

Read more

Last time, we set up JUnit 5 to be able to write tests. So let’s do it! Overview This post is part of a series about JUnit 5: Setup Basics Architecture Conditions Injection … Most of what you will read here and more can be found in the emerging JUnit 5 user guide. Note that it […]

Read more

In November 2015 the JUnit Lambda team presented their prototype. Since then the project rebranded itself as JUnit 5 and released an alpha version in February 2016. We’ll explore it in a series of short posts: Setup Basics Architecture Conditions Injection … This one discusses the JUnit 5 setup so you can write code against […]

Read more

As with most things in software development the ultimate currency for comments is time. How much do we have to invest and how much do they save us? Or in other words: Overview This post is another part in the ongoing series about comments: Comment Your Fucking Code! Thoughts On Comments A Taxonomy Costs And […]

Read more

The hands-on guide to Jigsaw brushes past a feature I would like to discuss in more detail: implied readability. With it, a module can reexport another module’s API to its own dependents. Overview This post is based on a section of an article I’ve recently written for InfoQ. If you are interested in a Jigsaw […]

Read more

After filtering a Java 8 Stream it is common to use findFirst() or findAny() to get the element that survived the filter. But that might not do what you really meant and subtle bugs can ensue. So What’s Wrong With findFirst() And findAny()? As we can see from their Javadoc (here and here) both methods […]

Read more

Did you hear about JUnit Lambda? I hope so because those guys are shaping the future of testing on the JVM. Too exaggerated? Maybe, but not by much. This is the next version of our beloved JUnit, by far the most used Java library, in the making. I experimented with the brand new prototype and […]

Read more

Project Jigsaw will bring modularization to the Java platform and according to the original plan it was going to be feature complete on the 10th of December. So here we are but where is Jigsaw? Sure a lot happened in the last six months: The prototype came out, the looming removal of internal APIs caused […]

Read more

Project Jigsaw has ambitious objectives, one of them is “to escape the ‘JAR hell’ of the brittle and error-prone class-path mechanism”. But while it will achieve many of its goals it looks like it may fall short on this one. So will there be module hell instead? Overview To know what we are talking about […]

Read more