REST-assured with Spock and Groovy [closed]

旧巷老猫 提交于 2019-12-12 16:23:30

问题


I am new to Spock and would like to write tests for a REST interface with Spock and REST-assured. Knowing REST-assurend in conjunction with Java I would like how to use REST-assured with Spock. Can anyone provide an example for this?


回答1:


REST-Assured's DSL seems at odds with Spock's DSL. Potential solutions are to adapt the former (e.g. using Groovy extension methods), or to put all code into a single expect: block.



来源:https://stackoverflow.com/questions/25848889/rest-assured-with-spock-and-groovy

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!