Closed almejo closed 5 years ago
Fixed for both testing-support 1.1.6 and grails 3.3.11
Thanks @jameskleeh Is there a workaround or a tentative release date for the 3.3.11 version?
Is there an old version where that was working?
You can wait for Grails 3.3.11, or testing support 1.1.6, or change your test to implement DataTest
I am facing same issue with grails 3.3.7 and grails-web-testing-support:1.1.4. I am implementing DataTest in the unit test but still seeing the error. @jameskleeh can you please clarify when you said "change your test to implement DataTest".
Hi
This is an update to the #54 (I will close that one, the old one was using deprecated classes)
I am using grails 3.3.10. I think I found a bug when I try to test shared constraints in the command objects.
The constraint is not available to the command object and it throws an exception.
Using the shared constraints in a domain works well as expected.
Steps to Reproduce
The domain
The command object inside a controller. This is my example
Than add the constraints in the application.groovy
And then test
Expected Behaviour
I expect the test to run
Actual Behaviour
The command object does not have the constraints during the test. I throws this exception
Environment Information
Example Application
I created a simple project with the problem. It is available in this repository https://github.com/almejo/commandtest