File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
test/groovy/org/codehaus/groovy/grails/web/taglib Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ import org.codehaus.groovy.grails.web.servlet.*
1212import org.springframework.mock.web.*
1313import org.springframework.validation.*
1414import org.springframework.web.servlet.*
15+ import org.springframework.context.*
1516import org.springframework.test.AbstractDependencyInjectionSpringContextTests ;
1617import org.springframework.web.servlet.DispatcherServlet ;
1718import org.springframework.web.servlet.i18n.AcceptHeaderLocaleResolver ;
@@ -61,6 +62,9 @@ abstract class AbstractGrailsTagTests extends GroovyTestCase {
6162 if (go. properties. containsKey(" grailsUrlMappingsHolder" )) {
6263 go. grailsUrlMappingsHolder = appCtx. grailsUrlMappingsHolder
6364 }
65+ if (go instanceof ApplicationContextAware ) {
66+ go. applicationContext = appCtx
67+ }
6468 def webRequest = RequestContextHolder . currentRequestAttributes()
6569
6670 webRequest. out = out
You can’t perform that action at this time.
0 commit comments