Laurent
2013-12-10 08:21:22 UTC
Hello,
It seems that now (in grails 2.3.1 and over) there is a posibility to access
getPersistent value and other isDirty property, but when calling
getPersistentValue from any Domain Class I've got a :
java.lang.NullPointerException
at
org.grails.datastore.gorm.GormInstanceApi.getPersistentValue(GormInstanceApi.groovy:305)
And impossible to "mock" by :
MyDomain.metaClass.static.getPersistentValue = {String s -> return null}
Any idea to get around this bug (isDirty seems to work, at least no
execption...)
Regards
--
View this message in context: http://grails.1312388.n4.nabble.com/getPersistentValue-throw-a-NullPointerException-in-Unit-Test-tp4652323.html
Sent from the Grails - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
It seems that now (in grails 2.3.1 and over) there is a posibility to access
getPersistent value and other isDirty property, but when calling
getPersistentValue from any Domain Class I've got a :
java.lang.NullPointerException
at
org.grails.datastore.gorm.GormInstanceApi.getPersistentValue(GormInstanceApi.groovy:305)
And impossible to "mock" by :
MyDomain.metaClass.static.getPersistentValue = {String s -> return null}
Any idea to get around this bug (isDirty seems to work, at least no
execption...)
Regards
--
View this message in context: http://grails.1312388.n4.nabble.com/getPersistentValue-throw-a-NullPointerException-in-Unit-Test-tp4652323.html
Sent from the Grails - dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email