기본 콘텐츠로 건너뛰기

Spock Exception Conditions


when:
stack.pop()

then:
def e = thrown(EmptyStackException)
e.cause == null

https://code.google.com/p/spock/wiki/SpockBasics

댓글