Grails

MockUtils assumes dateCreated & lastUpdated domain class properties are java.util.Date

Details

  • Type: Improvement Improvement
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.2-RC2
  • Fix Version/s: 1.2.1
  • Component/s: Testing
  • Labels:
    None

Description

MockUtils will always attempt to assign a new java.util.Date to a domain class property called dateCreated or lastUpdated. However, this may not necessarily be the right type, e.g. when the Joda Time plugin is installed and you're using org.joda.time.DateTime instead.

Activity

Hide
Robert Fletcher added a comment - - edited
Show
Robert Fletcher added a comment - - edited Fixed in commit http://github.com/grails/grails/commit/9106dd4a250e3bacda07994f410a1a5acb586e8d on 1.2.x branch

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: