Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.3.7
-
Fix Version/s: 2.1
-
Component/s: Persistence, Testing
-
Environment:Windows 7
-
Testcase included:yes
Description
mockDomain does not mock "NotInList" finder, however the finder works for run-app
Country.findAllByRegionNotInList(asia)
Will through
groovy.lang.MissingPropertyException: No such property: regionNot for class: test.app.Country
Possible solutions: region
at grails.test.MockUtils$_processInstances_closure88.doCall(MockUtils.groovy:1056)
at grails.test.MockUtils.processInstances(MockUtils.groovy:1055)
at grails.test.MockUtils$_addDynamicFinders_closure56.doCall(MockUtils.groovy:587)
at test.app.CountryTests.testNotInList(CountryTests.groovy:29)
See attached bug report, it has test for this case.
-
Hide
- test-app-bug-report-06012012.zip
- 06/Jan/12 7:37 AM
- 20 kB
- sudhir
-
- 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.8 kB
- grails-app/conf/UrlMappings.groovy 0.2 kB
- grails-app/conf/spring/resources.groovy 0.0 kB
- grails-app/domain/.../app/Country.groovy 0.1 kB
- grails-app/domain/test/app/Region.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 3 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/views/error.gsp 2 kB
- grails-app/views/index.gsp 4 kB
- grails-app/views/layouts/main.gsp 0.8 kB
- test/unit/test/app/CountryTests.groovy 0.8 kB
- application.properties 0.2 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Show
Graeme Rocher
added a comment - Sounds like a separate issue, closing this one
Hide
Keith Zimmerman
added a comment -
Where is the new issue? Please don't tell me you closed this bug without creating the new one!
Show
Keith Zimmerman
added a comment - Where is the new issue? Please don't tell me you closed this bug without creating the new one!
In Grails 2.1.0, "NotInList" seems to be mocked, however, it is not returning any data even when it should.