grails.test.mixin.support
Class GroovyPageUnitTestResourceLoader

java.lang.Object
  extended by org.springframework.core.io.DefaultResourceLoader
      extended by grails.test.mixin.support.GroovyPageUnitTestResourceLoader
All Implemented Interfaces:
org.springframework.core.io.ResourceLoader

public class GroovyPageUnitTestResourceLoader
extends org.springframework.core.io.DefaultResourceLoader

A ResourceLoader implementation that loads GSP views relative to the project base directory for unit tests.

Since:
2.0

Field Summary
static java.lang.String WEB_INF_PREFIX
           
 
Fields inherited from interface org.springframework.core.io.ResourceLoader
CLASSPATH_URL_PREFIX
 
Constructor Summary
GroovyPageUnitTestResourceLoader(java.util.Map<java.lang.String,java.lang.String> groovyPages)
           
 
Method Summary
 org.springframework.core.io.Resource getResource(java.lang.String location)
           
 
Methods inherited from class org.springframework.core.io.DefaultResourceLoader
getClassLoader, getResourceByPath, setClassLoader
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

WEB_INF_PREFIX

public static final java.lang.String WEB_INF_PREFIX
See Also:
Constant Field Values
Constructor Detail

GroovyPageUnitTestResourceLoader

public GroovyPageUnitTestResourceLoader(java.util.Map<java.lang.String,java.lang.String> groovyPages)
Method Detail

getResource

public org.springframework.core.io.Resource getResource(java.lang.String location)
Specified by:
getResource in interface org.springframework.core.io.ResourceLoader
Overrides:
getResource in class org.springframework.core.io.DefaultResourceLoader