Grails

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

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: Testing
  • Labels:
    None
  • Testcase included:
    yes

Description

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.

Activity

Hide
Graeme Rocher added a comment -

Thanks for the report

Show
Graeme Rocher added a comment - Thanks for the report

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: