@groovy.transform.CompileStatic public class GroovyPageUnitTestResourceLoader extends DefaultResourceLoader implements GrailsApplicationAware, InitializingBean
A org.springframework.core.io.ResourceLoader implementation that loads GSP views relative to the project base directory for unit tests.
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
WEB_INF_PREFIX |
|
private java.lang.String |
basePath |
|
private GrailsApplication |
grailsApplication |
|
private java.util.Map<java.lang.String, java.lang.String> |
groovyPages |
Constructor and description |
---|
GroovyPageUnitTestResourceLoader
(java.util.Map<java.lang.String, java.lang.String> groovyPages) |
Type Params | Return Type | Name and description |
---|---|---|
|
public void |
afterPropertiesSet() |
|
public Resource |
getResource(java.lang.String location) |
|
private java.lang.String |
makeCanonical(java.lang.String path) |
|
public void |
setGrailsApplication(GrailsApplication grailsApplication) |