jeudi 19 février 2015

Grails - unit test - GORM constraints - Java domain model

The application I have started working on has Java domain classes, and GORM constraints. Everything is working well, and the constraints are applied at runtime. However, I would like to write a unit test for the constraints. But the test is always green. As far as I can see, there is nothing unusual in conf. I've tried annotation @TestFor and the method mockForConstraintsTests(), but nothing seems to activate the constraints. I'm guessing this is due to the Java domain. Any suggestions on what I can try?


Aucun commentaire:

Enregistrer un commentaire