Spock Example
Spock example specifications along with ready-to-go Gradle builds
...It includes sample Specification classes that illustrate key Spock features—given/when/then style, data-driven testing, mocking/stubbing, and interaction verification. The examples show how to integrate Spock into typical Java/Groovy projects, how to run tests inside IDEs like Eclipse or IntelliJ, and how to align build scripts with Spock’s dependencies. It serves as a learning aid for developers new to Spock or wanting to adopt its expressive syntax in real-world projects. Because Spock has a lot of syntactic expressiveness and unique features (e.g. built-in data tables, concise mocking), seeing concrete samples is especially helpful. ...