To inject spring bean into grails spock test, you can add ‘defineBeans’ in setup section of spec test case. for example you have defined a spring bean as below: 195 more words
Tags » Grails
I’ve been working with a number of initiatives aimed for code quality in Grails projects. I’ve found some great plugins like CodeNarc, GMetrics, … but before we talk about them and how to run in Grails projects I would like go through on how to expose those quality metrics in a fancy dashboard. 278 more words
When submitting a large number of parameters in Grails, it can get quite messy validating each of them, and parsing them to the desired type. I came across the following Grails feature that can make this situation much more structured. 66 more words
The long-running love affair between grails, groovy, and default XML settings in the JVM continues.
Sometimes for whatever cosmic reason you get the following error in your application, and this just stop working: 847 more words
Sometimes the joyful experience of developing in grails is enhanced by periods of loneliness buried in dependency hell, or something similar.
I was setting up my new application, (grails 2.5.1 now) with the spring-security-rest (1.4.0) plugin to expose REST services. 212 more words