I am trying to write unit tests for a service which use grailsApplication.config to do some settings. It seems that in my unit tests that service instance could not access the c
Constructing grailsApp using DefaultGrailsApplication would work.
class ZazzercodeUnitTestCase extends GrailsUnitTestCase { def grailsApplication = new org.codehaus.groovy.grails.commons.DefaultGrailsApplication() def chortIndex= grailsApplication.config.zazzercode.chortIndex }