Issue Details (XML | Word | Printable)

Key: GRAILS-4495
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Graeme Rocher
Reporter: Robert Fletcher
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Grails

MissingPropertyException thrown accessing properties of subclass when mockDomain(BaseClass) is used

Created: 28/Apr/09 11:31 AM   Updated: 08/May/09 06:11 AM   Resolved: 08/May/09 06:11 AM
Return to search
Component/s: Testing
Affects Version/s: 1.1
Fix Version/s: 1.1.1

Time Tracking:
Not Specified

File Attachments: 1. GZip Archive mockDomainInheritance.tar.gz (126 kB)


Testcase included: yes


 Description  « Hide

When trying to test polymorphic domain class usage I use mockDomain(BaseClass) but get MissingPropertyException if I try to access subclass properties even on valid subclass instances.

Example attached.



Graeme Rocher added a comment - 08/May/09 06:11 AM

Thanks for the report