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

Half mock behaviour is not as expected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.8.4
    • None
    • mocks and stubs
    • Windows 7 64-bit, groovy 1.8.4

    Description

      Using a half mock, the expected result is that only ignored methods should be executed from the original code and demanded methods should be replaced by the given closure. Actually, in version 1.8.4, the demanded methods are also executed from the original code (see attached unit test).

      Attachments

        1. HalfMockTest.groovy
          1 kB
          Joachim Käßer

        Activity

          People

            Unassigned Unassigned
            hhjoker Joachim Käßer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: