|
Hi,
Just upgrading from 2.0.3 to 2.0.4 and have a few broken tests: In unit test when calling domainObject.save(): | java.lang.NullPointerException at org.grails.datastore.mapping.engine.NativeEntryEntityPersister.persistEntities(NativeEntryEntityPersister.java:1265) In integration test for UrlMapping: | junit.framework.AssertionFailedError: Url mapping 'contactId' parameter assertion for '/group/show/1/contact/show/2' failed expected:<2> but was:<2> In controller integration tests: Testing actions which trigger HQL queries now return different results to before. A few questions: * is reporting this stuff helpful? * are these known changes in behaviour? * should I just be sorting this kind of thing out myself? Thanks for any help, Alex --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Administrator
|
Please raise a JIRA issue and attach an example
Thanks On Thu, May 24, 2012 at 10:11 AM, Alex Anderson <[hidden email]> wrote: > Hi, > > Just upgrading from 2.0.3 to 2.0.4 and have a few broken tests: > > In unit test when calling domainObject.save(): > | java.lang.NullPointerException > at org.grails.datastore.mapping.engine.NativeEntryEntityPersister.persistEntities(NativeEntryEntityPersister.java:1265) > > In integration test for UrlMapping: > | junit.framework.AssertionFailedError: Url mapping 'contactId' > parameter assertion for '/group/show/1/contact/show/2' failed > expected:<2> but was:<2> > > In controller integration tests: > Testing actions which trigger HQL queries now return different results > to before. > > A few questions: > * is reporting this stuff helpful? > * are these known changes in behaviour? > * should I just be sorting this kind of thing out myself? > > Thanks for any help, > > Alex > > --------------------------------------------------------------------- > To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > -- Graeme Rocher Grails Project Lead SpringSource - A Division of VMware http://www.springsource.com --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
The URL mappings test may be related to
http://jira.grails.org/browse/GRAILS-9110. Check to make sure one isn't a string and the other an integer.
On Thu, May 24, 2012 at 3:43 AM, Graeme Rocher <[hidden email]> wrote: Please raise a JIRA issue and attach an example |
|
On 24 May 2012 17:21, Brian Saville <[hidden email]> wrote:
> The URL mappings test may be related to > http://jira.grails.org/browse/GRAILS-9110. Check to make sure one isn't a > string and the other an integer. Looks like you're correct - in the assertForwardUrlMapping I have used integers, and the URL itself is obviously a String. Interestingly this seems to be OK in integration tests (contrary to my previous email), but breaks unit tests. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
| Powered by Nabble | Edit this page |
