开发者

When running a unit test on the controller save method, for some reason a grails models save method returns simply null

开发者 https://www.devze.com 2023-01-08 03:00 出处:网络
So we have a unit test which is failing where we attempt to call the save method on a model. This for some reason returns true when we run the method in reality. We\'ve mocked the domain in the setUp

So we have a unit test which is failing where we attempt to call the save method on a model. This for some reason returns true when we run the method in reality. We've mocked the domain in the setUp method.

Does anyone know why the heck the save method is returning null?

Source Code here: http://gist.github.com/485365

We're running开发者_运维知识库 Grails 1.3.1


this might be an issue if you are using 1.3.3.

http://jira.codehaus.org/browse/GRAILS-6482

0

精彩评论

暂无评论...
验证码 换一张
取 消