开发者

How to expect a Mock method to be called "Any" number of times in Groovy

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜