I recently upgraded to grails 1.1.1 and while my application works fine, my tests are having some serious issues:
for unit tests some mocks are failing, it seems like anything that calls a method from a domain class isn't working, for instance
def boolean isParameterized() { return (parameters != null && !parameters.isEmpty()) }
is called by an if statement in a controller, and in the test for the controller (which extends the ControllerUnitTestCase) this mock is created
reportDefinitionControl.demand.isParameterized { -> return false }
but when I run the tests, isParametrized is true, which is made more confusing by the fact that the mocked instance would have isParametrized be false anyway, because parameters is empty.
For my integration tests, it seems like the application can't compile and I get error messages like
[INFO] Compilation Error: Compilation Failed [INFO] Error running integration tests: java.lang.ClassNotFoundException: project.alert.AlertTypeTests [WARNING] java.lang.ClassNotFoundException: project.alert.AlertTypeTests
anybody got any tips?