Grails
  1. Grails
  2. GRAILS-8468

Mocked views are not cleaned up between tests

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0-RC3
    • Fix Version/s: 2.0 final
    • Component/s: Testing
    • Labels:
      None

      Description

      If I mock a view using views[path] = 'MY GSP CODE' then it is not torn down after the test executes. I had to add the following code to isolate tests properly:

      views.clear()
      applicationContext.getBean("groovyPagesTemplateEngine").clearPageCache()
      applicationContext.getBean("groovyPagesTemplateRenderer").clearCache()
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Robert Fletcher
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development