ahmaddarawshi / powermock

Automatically exported from code.google.com/p/powermock
0 stars 0 forks source link

Add replace method to PowerMock and PowerMockito #108

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
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

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 1 Oct 2009 at 8:46

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 22 Jul 2010 at 9:16

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 8 Aug 2010 at 9:01