Open GoogleCodeExporter opened 9 years ago
I think we should consider using an existing API for that, e.g. the
ignoreStubs(...). So that one can do:
reset(ignoreStubs(mockOne, mockTwo));
Having said that I'm thinking that it should just work... although we don't
have any test for that as the use case for adding ignoreStubs() was completely
different :)
Original comment by szcze...@gmail.com
on 11 Feb 2012 at 3:03
Ah... no it won't work out of the box.
Original comment by szcze...@gmail.com
on 11 Feb 2012 at 3:06
Original comment by brice.du...@gmail.com
on 24 Feb 2012 at 3:53
Original comment by brice.du...@gmail.com
on 3 Sep 2012 at 10:00
Original comment by brice.du...@gmail.com
on 3 Sep 2012 at 10:11
This would probably be the feature that I miss most often in Mockito.
Example use cases is stateful scenarios when you want to call the same method
multiple times, and evaluate the interactions of each invokation, or when you
want to test the same method with minor variations to the input, and the
stubbing and/or input data is non-trivial enough to make you want to avoid
separate test methods while a common setup method would decrease readability.
(Yes, the latter is just a matter of personal preference).
Original comment by mattias....@gmail.com
on 25 Jun 2013 at 7:18
Original issue reported on code.google.com by
dr.torpe...@gmail.com
on 11 Feb 2012 at 10:19