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
In order to run the tests just execute
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…