grails.test.mixin.support
Class GroovyPageUnitTestResourceLoader
java.lang.Object
org.springframework.core.io.DefaultResourceLoader
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
| Fields inherited from interface org.springframework.core.io.ResourceLoader |
CLASSPATH_URL_PREFIX |
|
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 |
WEB_INF_PREFIX
public static final java.lang.String WEB_INF_PREFIX
- See Also:
- Constant Field Values
GroovyPageUnitTestResourceLoader
public GroovyPageUnitTestResourceLoader(java.util.Map<java.lang.String,java.lang.String> groovyPages)
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