Here’s the recording of the NightHacking session I did with Stephen Chin at JFokus 2013. In this session I demonstrate my Setup Once Per Feature With Spock hack.
Disclaimer: This example is a hack that uses un-official/non-public Spock APIs. A proper implementation of this extensions is also included and distributed as part of my Spock Extensions module; The library can be downloaded from here and is also hosted on github. Also, as seen on Stephen Chin’s Nighthacker 🙂 The Missing pieces Prior to… Continue reading Setup Once Per Feature With Spock Extensions
The Missing Infrastructure Developing with Grails is a real delight, and testing my delightful Grails applications with Spock makes the experience even better. Some of Grails’ test cases, such as the Controllers, require a specialized setup because you don’t test them in the same manner as you would test PO[GJ]Os; you must mock requests and… Continue reading Testing Grails JAX-RS resources with Spock
Why externalize? During development of a Grails application, I’ve also developed some independent POJ applications to work alongside the Grails application; because these independent applications worked on the same data as the Grails, they naturally had to use the same data source. Wouldn’t it be great if all these applications could use the same data… Continue reading Truly externalizing the Grails DateSource configuration
During work on different Grails projects, I’d be confronted at times with the mysterious error: | Building WAR file….. | Error executing script War: : $USER_HOME/.grails/2.1.1/projects/some-project/resources/grails-app does not exist. At first I thought to myself “Oh, this is just a glitch; Let’s just manually re-create folder nd get on with it!”, but when the error… Continue reading The mystery of the missing grails-app directory