Last active
October 14, 2016 03:50
-
-
Save fmamud/5ba48f9490ccfaab9e33fbea9e607591 to your computer and use it in GitHub Desktop.
First method in Spock Specification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import spock.lang.* | |
class MySpec extends Specification { | |
def "should return 4 after list sum"() { | |
given: | |
List<Integer> list = new ArrayList<>() | |
when: | |
list.add(2) | |
then: | |
4 == list.sum() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment