Grails
  1. Grails
  2. GRAILS-7713

Cascading validation does not work in unit tests using @Mock

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 1.4-M1
    • Fix Version/s: 2.3-RC1
    • Component/s: Persistence, Testing
    • Labels:
      None
    • Testcase included:
      yes

      Description

      The validate() method on a mocked domain class instance does not fail when there is an invalid property on an embedded or associated object.

      See attached project.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Robert Fletcher
          • Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Last Reviewed:

              Development