Skip to content
Example for JUnit -> Spock live coding demo
Java Groovy Shell
Find file
Latest commit 342df78 Mar 28, 2013 Rob Fletcher updated plan
Failed to load latest commit information.
gradle/wrapper upgrade everything to latest versions Mar 20, 2013
src where block Mar 24, 2013
.gitignore ignore gradle.properties Jun 7, 2012
build.gradle upgrade everything to latest versions Mar 20, 2013
gradlew upgrade everything to latest versions Mar 20, 2013
gradlew.bat empty project with gradle wrapper May 18, 2012
groovier-testing-with-spock.key
plan.md
readme.md

readme.md

This is a demo application used for delivering a presentation on Spock. The presentation is aimed at Java developers familiar with JUnit and consists of a re-implementation of some JUnit tests as Spock specifications.

The application is a simple simulation of a vending machine. There are unit tests written using JUnit and JMock under src/test/java and corresponding Spock specifications under src/test/groovy.

In order to run the tests just execute ./gradlew test.

In addition to the master branch there is a demo-start branch which is the starting point for the demo. It contains only the bare-bones of the Spock specifications.

I have presented this demo at…

Something went wrong with that request. Please try again.