I'm a bit at a loss to isolate the following situation in a isolated testcase. The testcase I tried to create runs without any problems
But the situation causes us problems in migrating our project from Grails 1.3.7 to 2.0.x.
I've got a domain class that contains an embedded Amount object. This Amount class is not a Domain class. Just a simple wrapper around BigDecimal and contained in a model package.
A simplified setup of the domain class:
This works fine, however a new test (Using the @TestFor and @Mock annotations) results in the following stacktrace, which suggests that the Amount object is treated as a GORM object?