|
I create an app, create a domain and any integration tests cannot use the grom methods.
doing a simple .get results in groovy.lang.MissingMethodException: No signature of method: sample.Book.get() is applicable for argument types: () ....... Is this a known issue? surely I can't be the only one getting this unless (unless I have a wonky setup.) Can others confirm and/or point me the jira? Spock tests work fine but converting all out tests to spock is not an option right now. --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email |
|
Can you show us some literal code please?
I don't think you call the get method without any parameters? Chris "Josh (basejump)" <[hidden email]>schreef: >I create an app, create a domain and any integration tests cannot use the grom methods. >doing a simple .get results in >groovy.lang.MissingMethodException: No signature of method: sample.Book.get() is applicable for argument types: () ....... > >Is this a known issue? surely I can't be the only one getting this unless (unless I have a wonky setup.) Can others confirm and/or point me the jira? > >Spock tests work fine but converting all out tests to spock is not an option right now. > > > > >--------------------------------------------------------------------- >To unsubscribe from this list, please visit: > > http://xircles.codehaus.org/manage_email > > |
|
I narrowed down the issue and its a bit bizarre. I removed export false from the plugin dependencies runtime(":tomcat:$grailsVersion", ":hibernate:$grailsVersion") { export = false } to runtime(":tomcat:$grailsVersion", ":hibernate:$grailsVersion") Integration tests run as expected and gorm methods are initialized on the domain Logged http://jira.grails.org/browse/GRAILS-9203 |
|
I see this issue intermittently whenever I change a domain object within a running server (in 2.0.4). We have a bunch of domain objects and it takes forever to initialize them all. The spring reloading agent seems to compile the domain class and reload it instantly but all of the GORM magic takes a while. If I try to access something that uses that domain object, I'll start getting weird behavior such as the error below.
I also wrote a plugin that watches for code changes and runs integration tests automatically. Whenever a domain object changes while in that mode, it always causes this error. However, I've not seen it just with a normal, integration test run from the start.
-Aaron On Sat, Jun 16, 2012 at 11:04 PM, Josh (basejump) <[hidden email]> wrote:
|
| Powered by Nabble | Edit this page |
