Unit Testing

What Prevents You From Writing Automated Tests?

If you read my blog on a regular basis, you have probably noticed that I have written many tutorials about automated testing. The problem is that some of these tutorials are quite old and outdated, and that is why I am going to update them. Here's where you come in. Before I can help you […] Read more

Writing Unit Tests With Spock Framework: Creating a Gradle Project

The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read more

The Best Comments of August 2015

I think that the best part of writing a blog is to get comments from my readers. Because I have learned a lot from my readers, I want to “reward” the best comments, help you to learn new things, and (hopefully) encourage people to leave more comments. The rules are simple: I select X best […] Read more

Writing Unit Tests With Spock Framework: Creating a Maven Project

The Spock Framework is a testing and specification framework for Java and Groovy applications. Its website make a somewhat bold claim: What makes it stand out from the crowd is its beautiful and highly expressive specification language. Before we can verify if this claim is true, we have to create an example project that we […] Read more

Writing Clean Tests - Java 8 to the Rescue

In the previous part of this tutorial we solved some common problems found from “clean” unit tests by using nested configuration. I was very happy with the final test class, but after a while I realized that something was bothering me. The only problem was that I couldn’t figure out what it was. I ignored […] Read more

The Best Comments of June 2015

I think that the best part of writing a blog is to get comments from my readers. Because I have learned a lot from my readers, I want to “reward” the best comments, help you to learn new things, and (hopefully) encourage people to leave more comments. The rules are simple: I select X best […] Read more