Testing Grails JAX-RS resources with Spock

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

Truly externalizing the Grails DateSource configuration

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