{"title":"Groovyc: unexpected token: } \u3068 where\u30d6\u30ed\u30c3\u30af","published":"2017-09-25 13:09:21","provider_name":"Hatena Blog","image_url":null,"categories":["groovy"],"version":"1.0","blog_title":"\u306e\u3048\u3089","blog_url":"https://noterr0001.hateblo.jp/","url":"https://noterr0001.hateblo.jp/entry/20170925/1506312561","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoterr0001.hateblo.jp%2Fentry%2F20170925%2F1506312561\" title=\"Groovyc: unexpected token: } \u3068 where\u30d6\u30ed\u30c3\u30af - \u306e\u3048\u3089\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190","author_url":"https://blog.hatena.ne.jp/noterr0001/","provider_url":"https://hatena.blog","author_name":"noterr0001","type":"rich","width":"100%","description":"Spock(Groovy)\u306e\u30c6\u30b9\u30c8\u30b1\u30fc\u30b9\u3092\u66f8\u3044\u3066\u3044\u3066\u3001\u5f8c\u304b\u3089where\u30d6\u30ed\u30c3\u30af\u3092\u8ffd\u52a0\u3057\u305f\u3089\u4ee5\u4e0b\u306e\u30a8\u30e9\u30fc\u304c\u51fa\u305f\u3051\u3069\u59cb\u3081\u306a\u3093\u3067\u6012\u3089\u308c\u3066\u3044\u308b\u306e\u304b\u308f\u304b\u3089\u306a\u304b\u3063\u305f\u3002 Groovyc: unexpected token: } \u66f8\u3044\u3066\u3044\u305f\u30c6\u30b9\u30c8\u306f\u3053\u3093\u306a\u611f\u3058\u3002 API\u53e9\u3044\u3066\u7d50\u679c\u3092\u78ba\u8a8d\u3059\u308b\u3060\u3051\u3002 def 'GET: /hoge/list Hoge\u306e\u4e00\u89a7\u3092\u8fd4\u3059'() { when: // API\u30ea\u30af\u30a8\u30b9\u30c8 \u30af\u30ed\u30fc\u30b8\u30e3 def request = { // Rest execute } then: with(request.call()) { it.status == xxx it.body == xxx } } \u2026"}