Details
Description
A lot of my tests that were passing under Grails 1.3.6 now fail after upgrading to 1.4M1. The test classes in question extend either TagLibUnitTestCase or GrailsUnitTestCase. In all cases, the error message is:
java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request. at ie.pocketkings.web.admintool.tag.FormTagLib.partial(FormTagLib.groovy) at ie.pocketkings.web.admintool.tag.FormTagLib$partial.call(Unknown Source) at ie.pocketkings.web.admintool.tag.FormTagLibTests.testPartialForm(FormTagLibTests.groovy:39)
I've attached the class and test class corresponding to the exception above.
I realise that these abstract test classes are now deprecated in favour of mixins, but presumably they're still supposed to work? Don't hesitate to let me know if there's anything I can do to help with this issue
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits