You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For unit testing, you need to register the CustomTypeMarshaller for the SimpleMap by adding this to your application.groovy:
grails.gorm.custom.types = [
new SimpleMapJodaTimeMarshaller(LocalDate),
new SimpleMapJodaTimeMarshaller(LocalDateTime),
]
The plugin should probably add this configuration automatically. This used to be done inside the initialize method on the SimpleMapJodaTimeMarshaller, however in GORM 6 and later, the registerCustomType method is no longer static so it must be done via the configuration.
Grails 3.3.2
JDK 8
For example we have a domain
User.groovy
Now, when we run the following test it should pass:
The text was updated successfully, but these errors were encountered: