Skip to content

Commit

Permalink
GRAILS-6278 - Fix for test case on scoped proxies.
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley authored and Jeff Brown committed Sep 18, 2010
1 parent 06d82c7 commit 5649465
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.codehaus.groovy.grails.plugins.services

import org.codehaus.groovy.grails.commons.test.AbstractGrailsMockTests
import grails.spring.BeanBuilder
import grails.spring.WebBeanBuilder
import org.springframework.web.context.support.WebApplicationContextUtils
import grails.util.GrailsWebUtil
import org.springframework.web.context.request.RequestContextHolder
Expand All @@ -11,14 +11,11 @@ class ScopedProxyAndServiceClassTests extends AbstractGrailsMockTests {

// test for http://jira.codehaus.org/browse/GRAILS-6278
void testScopedProxy() {
if(notYetImplemented()) return

def bb = new BeanBuilder()
def bb = new WebBeanBuilder()

GrailsWebUtil.bindMockWebRequest()

bb.beans {
WebApplicationContextUtils.registerWebApplicationScopes(springConfig.beanFactory);
"org.springframework.aop.config.internalAutoProxyCreator"(GroovyAwareAspectJAwareAdvisorAutoProxyCreator)
testService(TestService) { bean ->
bean.scope = "session"
Expand Down Expand Up @@ -56,6 +53,8 @@ class TestService {
serviceMethod()
}

// - This was the workaround for the bug -
//
// private MetaClass metaClass
//
// TestService() {
Expand Down

0 comments on commit 5649465

Please sign in to comment.