Details

    • Type: Sub-task Sub-task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.4
    • Fix Version/s: 2.0 final
    • Component/s: Testing
    • Labels:
      None

      Description

      In the current Testing Plugin (0.5) there is now support for mocking out the bindData() method on Controllers. The workaround this absence is to do something like this:

      controller.metaClass.bindData = {target, params ->
      params.each{ key, value ->
      try

      { target."$key" = value }

      catch(MissingPropertyException ex){

      }
      }
      return target
      }

        Activity

        Hide
        Malte Huebner added a comment -

        Me too! +1

        Show
        Malte Huebner added a comment - Me too! +1

          People

          • Assignee:
            Graeme Rocher
            Reporter:
            Zan Thrash
          • Votes:
            6 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Last Reviewed:

              Development