From Java Testing with Spock

Take 40% off the entire book. Just enter ankapelonis into the discount code box at checkout at


Java Testing with Spock teaches you how to use Spock for a wide range of testing use cases in Java. Readers new to Groovy will appreciate the succinct language tutorial that’ll give you just enough Groovy to use Spock effectively.


Using mocks and stubs in a Spock test