geofflane/grails-constraints — Issue #11: Grails 2.0 Unit tests
Author: jamescookie
Created: 2011-12-16 21:34:33+00:00
State: open

Just trying up upgrade my project to Grails 2.0 and run into a problem with this plugin.

Some of my domain classes share a need for complicated validation, so I use your plugin to extract it to a common constraint. However when running my unit tests in Grails 2.0 I get:

`java.lang.IllegalArgumentException: ServletContext must not be null`

When I attempt to construct a Domain class with this custom constraint. If I comment out the constraint, everything works fine.