|
HelloSpock
Your first Spock specification.
import spock.lang.*
class HelloSpock extends Specification {
def "can you figure out what I'm up to?"() {
expect:
name.size() == size
where:
name << ["Kirk", "Spock", "Scotty"]
size << [4, 5, 6]
}
}
|
► Sign in to add a comment
How to run this in Eclipse?
See http://code.google.com/p/spock/wiki/GettingStarted#Eclipse. Alternatively you can download the example project and auto-create an Eclipse project for it (see README).