While Java has changed a lot recently, the tools and techniques most Java developers use to test code are starting to show their age. Spock is a modern testing framework that combines the features of JUnit, Mockito, and JBehave into a single powerful testing library. With Spock, developers can use Groovy to write more readable and concise tests, and built-in mocking means they no longer need an external framework. Spock enables seamless integration testing and, with the intuitive Geb library, users can even handle functional testing of web applications. Java Testing with Spock shows how to use Spock for a wide range of testing use cases in Java. It starts with a quick overview of Spock, and works through writing unit tests using the Groovy language, ...