Grails validateable not work for non-persistent domain class

前端 未结 2 1939
独厮守ぢ
独厮守ぢ 2021-01-25 18:53

I followed the instruction here: http://www.grails.org/doc/latest/guide/7.%20Validation.html

and added into config.groovy:

grails.valida         


        
2条回答
  •  夕颜
    夕颜 (楼主)
    2021-01-25 19:29

    I don't think the validate() and hasErrors() dynamic methods are added in a Unit test. If you move this to an integration test they should be there.

提交回复
热议问题