Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1871

New MockFor support for properties means not possible to mock just methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.1-beta-1
    • 1.7.1
    • mocks and stubs
    • None

    Description

      The new mocking of properties means you can no longer mock code that calls methods and sets properties (that you don't care about), whereas you could with groovy 1.0

      I think we need a mock.propertyDemands = true/false property to control this behaviour.

      Attachments

        Issue Links

          Activity

            People

              paulk Paul King
              marc@anyware.co.uk Marc Palmer
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: