keeganwitt / gmock

Automatically exported from code.google.com/p/gmock
6 stars 2 forks source link

Concrete object mocking doesn't work with ordered closure #84

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
    void testWithOrderedClosure() {
        def tagLib = new FakeTagLib()
        def mockTabLib = mock(tagLib)
        ordered {
            mockTabLib.link([some: "attr"], "hello").returns("<a>link</a>")
        }
        play {
            tagLib.linkHello([some: "attr"])
        }
    }

It doesn't work in both 0.7 and 0.9.

Original issue reported on code.google.com by JohnnyJianHY on 27 Apr 2009 at 3:54

GoogleCodeExporter commented 9 years ago

Original comment by julien.g...@gmail.com on 27 Apr 2009 at 6:08

GoogleCodeExporter commented 9 years ago
I'll have a look at that one if you don't mind.

Original comment by julien.g...@gmail.com on 27 Apr 2009 at 6:10

GoogleCodeExporter commented 9 years ago
Actually I have fixed it :)

Original comment by JohnnyJianHY on 27 Apr 2009 at 6:33

GoogleCodeExporter commented 9 years ago
No problem you're too quick. 

Original comment by julien.g...@gmail.com on 27 Apr 2009 at 6:36

GoogleCodeExporter commented 9 years ago

Original comment by JohnnyJianHY on 27 Apr 2009 at 7:27