« Return to Thread: [ANN] Testing Plugin 0.2 sneakily released

Re: [ANN] Testing Plugin 0.2 sneakily released

by Peter Ledbrook-2 :: Rate this Message:

Reply to Author | View in Thread

> I'm getting the following exception in all my controller tests:
>
>    Cannot cast object
> 'org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpSession@11fd699'
> with class
>    'org.codehaus.groovy.grails.plugins.testing.GrailsMockHttpSession'
> to class 'java.util.Map'
>    ...
>    at grails.test.ControllerUnitTestCase.setUp(ControllerUnitTestCase.groovy:76)
>
> Looks like the plugin now attaches a GrailsMockHttpSession to the
> controller but the property on ControllerUnitTestCase is still
> declared as Map.

I knew I'd fixed that, but unfortunately after the release. Oh well, a
bit of a rush job on that release. FYI svn HEAD uses MockHttpSession
rather than GrailsMockHttpSession.

If I package up svn HEAD as 0.3-SNAPSHOT, do you mind giving it a
whizz? I'll try it as well, and if that's fine, I'll release as 0.3.
The URL mapping stuff can go into 0.4.

Definitely need to flesh out the test cases for GrailsUnitTestCase et al.

Cheers,

Peter

--
Software Engineer
G2One, Inc.
http://www.g2one.com/

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: [ANN] Testing Plugin 0.2 sneakily released