Preface

The first time Spock came onto my programming radar (which is always on, looking for interesting news in the Java ecosystem) I have to admit it didn’t get the attention it deserved. I briefly read its web page and originally thought that it was the equivalent of JUnit but for the Groovy programming language instead of Java. Since I mainly write Java code professionally, a Groovy testing framework wasn’t of much interest to me at that time. I moved along to the next news item of my RSS reader. Big mistake!

Groovy was already very high up on my list of “things that I needed to evaluate” and I kept researching it. I was especially interested in how it connects to Java and the ways it augments your existing Java code base. I learned that ...

Get Java Testing with Spock now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.