When mocking I generally don't want to set expectations about the
argument values going into collaborators. I was wondering what is
the most concise way to do it? Right now I have tests filled with
things like:
Foo foo = mock(Foo)
foo.bar(match{true},match{true},match{true}).returns("dog").stub()
Groovy's StubFor makes this much simpler, but falls down in other
regards. Is there any better way to do it than what I'm doing?
Wish list: make a 'stub' function that works like Groovy's method and
let me do:
Foo foo = stub(Foo)
foo.bar(String,String,Baz).returns("dog")
Cheers,
Simon.
--
You received this message because you are subscribed to the Google Groups "gmock-user" group.
To post to this group, send email to gmock...@googlegroups.com.
To unsubscribe from this group, send email to gmock-user+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gmock-user?hl=en.