Hello World 使用的时间和时间或期望
import spock.lang.*
class HelloWorldSpec extends Specification {
@Shared message = 'Hello world!'
def "The world can say hello using when and then"() {
when:
def newMessage = message
then:
newMessage == 'Hello world!'
}
def "The world can say hello using expect"(){
expect:
message == 'Hello world!'
}
}