Spock Primer
This chapter assumes that you have a basic knowledge of Groovy and unit testing. If you are a Java developer but haven’t heard about Groovy, don’t worry - Groovy will feel very familiar to you! In fact, one of Groovy’s main design goals is to be the scripting language alongside Java. So just follow along and consult the Groovy documentation whenever you feel like it.
The goals of this chapter are to teach you enough Spock to write real-world Spock specifications, and to whet your appetite for more.
To learn more about Groovy, go to http://groovy-lang.org/.
To learn more about unit testing, go to http://en.wikipedia.org/wiki/Unit_testing.
Terminology
Let’s start with a few definitions: Spock lets you write specifications that describe expected features (properties, aspects) exhibited by a system of interest. The system of interest could be anything between a single class and a whole application, and is also called system under specification (SUS). The description of a feature starts from a specific snapshot of the SUS and its collaborators; this snapshot is called the feature’s fixture.
The following sections walk you through all building blocks of which a Spock specification may be composed. A typical specification uses only a subset of them.
Imports
import spock.lang.*
Package spock.lang contains the most important types for writi
主站蜘蛛池模板:
夜夜影院未满十八勿进|
五家渠市|
av色国产色拍|
九九热在线精品视频99|
亚洲精品欧美综合二区|
中国女人高潮hd|
丰满少妇被猛烈进出69影院|
无码一区二区三区视频|
亚洲精品韩国一区二区|
中文字幕色偷偷人妻久久|
国产欧亚州美日韩综合区|
九九热在线精品视频观看|
日本欧美大码aⅴ在线播放
|
久久综合亚洲色一区二区三区|
日韩毛片在线视频x|
国产一区二区三区精品综合|
乱女乱妇熟女熟妇综合网|
日韩精品人妻系列无码av东京|
色国产视频|
国产丰满乱子伦无码专区|
贡觉县|
国产午夜精品理论大片|
国精产品自偷自偷ym使用方法|
日韩免费无码视频一区二区三区|
日韩成人一区二区二十六区|
国产区成人精品视频|
日韩中文字幕免费在线观看|
无套内射视频囯产|
天天躁夜夜躁狠狠综合|
亚洲av成人一区二区三区|
青青草原国产精品啪啪视频
|
丁香五月亚洲综合在线国内自拍
|
精品偷拍一区二区三区|
国产精品视频一区二区三区不卡
|
人人澡超碰碰97碰碰碰|
日本一区二区三区内射|
色悠悠国产精品免费在线|
深夜精品免费在线观看|
亚洲成人四虎在线播放|
亚洲第一人伊伊人色综合|
欧美视频二区欧美影视|