ahmaddarawshi / powermock

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

Add proxy support for (private) methods #126

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Add a generic way to add proxy support for private and non-private methods.
In some situations you want to just do something before or after the actual
method invocation, like record how many times the method was actually
invoked. This should be easily possible by delegating the call to an
InvocationHandler (that the user defines) in the MockGateway instead of
calling the real method.

Original issue reported on code.google.com by johan.ha...@gmail.com on 3 Jul 2009 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 3 Jul 2009 at 12:32

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 19 May 2011 at 7:11