Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.1
-
Component/s: None
-
Labels:None
-
Environment:Windows XP Professional running on Dell Latitude D630.
java version "1.6.0_17"
Java(TM) SE Runtime Environment (build 1.6.0_17-b04)
Java HotSpot(TM) Client VM (build 14.3-b01, mixed mode, sharing)
-
Testcase included:yes
Description
Constraints declared in parent commands are not applied in child commands.
I have attached a sample project with a little grails application in order to show how it can be achieved
However, doing some unit testing and using mockForConstraintsTests constraints are applied in child classes. (The unit tests are in the above project.
Regards,
Migue
-
Hide
- test-grails1.2.1.zip
- 02/Mar/10 4:38 AM
- 198 kB
- Miguel Pastor
-
- .settings/com.springsource.sts.grails.core.prefs 2 kB
- .settings/org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- grails-app/conf/BootStrap.groovy 0.1 kB
- grails-app/conf/BuildConfig.groovy 1 kB
- grails-app/conf/Config.groovy 4 kB
- grails-app/conf/DataSource.groovy 0.6 kB
- grails-app/conf/SecurityConfig.groovy 0.1 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/.../FooController.groovy 0.6 kB
- grails-app/domain/.../SampleEntity.groovy 0.1 kB
- grails-app/domain/.../scoremind/Foo.groovy 0.1 kB
- grails-app/i18n/messages.properties 3 kB
- grails-app/i18n/messages_da.properties 3 kB
- grails-app/i18n/messages_de.properties 4 kB
- grails-app/i18n/messages_es.properties 8 kB
- grails-app/i18n/messages_fr.properties 2 kB
- grails-app/i18n/messages_it.properties 2 kB
- grails-app/i18n/messages_ja.properties 2 kB
- grails-app/i18n/messages_nl.properties 3 kB
- grails-app/.../messages_pt_BR.properties 3 kB
- grails-app/.../messages_pt_PT.properties 3 kB
- grails-app/i18n/messages_ru.properties 4 kB
- grails-app/i18n/messages_th.properties 5 kB
- grails-app/.../messages_zh_CN.properties 2 kB
- grails-app/taglib/.../CountryTagLib.groovy 6 kB
- grails-app/views/error.gsp 2 kB
- grails-app/views/foo/list.gsp 0.6 kB
- grails-app/views/foo.gsp 1 kB
- grails-app/views/index.gsp 3 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Hide
Jeff Brown
added a comment -
Show
Jeff Brown
added a comment - Fixed.
1.3: http://github.com/grails/grails-core/commit/ba1a3388c82ad8d3cd614f6ef20517c5e01f6551
1.2.3: http://github.com/grails/grails-core/commit/4b79650810c68f022e57b6ba7d04dec0e6c7d62d
The MockUtils honors the complete class hierarchy which should be the standard when adding validation logic to a class.