public class GroovyPageUnitTestResourceLoader
extends org.springframework.core.io.DefaultResourceLoader
implements org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAware, org.springframework.beans.factory.InitializingBean
ResourceLoader implementation
that loads GSP views relative to the project base directory for unit tests.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WEB_INF_PREFIX |
| Constructor and Description |
|---|
GroovyPageUnitTestResourceLoader(java.util.Map<java.lang.String,java.lang.String> groovyPages) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
org.springframework.core.io.Resource |
getResource(java.lang.String location) |
void |
setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication) |
public static final java.lang.String WEB_INF_PREFIX
public GroovyPageUnitTestResourceLoader(java.util.Map<java.lang.String,java.lang.String> groovyPages)
public org.springframework.core.io.Resource getResource(java.lang.String location)
getResource in interface org.springframework.core.io.ResourceLoadergetResource in class org.springframework.core.io.DefaultResourceLoaderpublic void setGrailsApplication(org.codehaus.groovy.grails.commons.GrailsApplication grailsApplication)
setGrailsApplication in interface org.codehaus.groovy.grails.plugins.support.aware.GrailsApplicationAwarepublic void afterPropertiesSet()
throws java.lang.Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanjava.lang.Exception