We should add a "replace" method to the API's allowing the user to replace
each call to a specific method in a class with another value. This is
already support using MockRepository.addSubstituteReturnValue.
We should also consider using replace(X.class, Y.class), i.e. duck-typing.
Would be possible if we extend the addSubstituteReturnValue somewhat (i.e.
lazy-invocation).
Original issue reported on code.google.com by johan.ha...@gmail.com on 22 May 2009 at 5:17
Original issue reported on code.google.com by
johan.ha...@gmail.com
on 22 May 2009 at 5:17