I can't find a formal way in Groovy's 开发者_如何学JAVAMockFor object to define an expected call that can be called any number of times as in EasyMock, using anyTimes()
I know I could define a range of '1..999' and I would be covering what I want, but I wonder if there is such a "anyTimes()" method available, as I couldn't find any reference to it with Google.
Thanks
No, to my knowledge, you can not specify and infinite range.
Thank you both. It seems there is no such a functionality in Groovy Mocks. Anyway, using a wide enough range for expected calls works out.
精彩评论