Introduction to the tutorial and links to further reading.

In this tutorial we're going to use the Spock framework to create and run unit tests.

We'll create a new project that contains Java code, and use Spock to unit test that code. Although Spock tests are written in Groovy, we can use this framework to test Java production code.

Spock tests can be easy to read, and so this framework can be used not only to test application code, but also to document its expected behaviour.

Other Resources