ahmaddarawshi / powermock

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

Whitebox.invokeMethod must be able to run methods in a super class. #48

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Whitebox.invokeMethod should be able to execute a private method in
somewhere in the class hierarchy. For example if one creates an anonymous
inner class of the class under test to override some public methods you'd
still like to be able to invoke private methods in the "concrete class".

Original issue reported on code.google.com by johan.ha...@gmail.com on 28 Oct 2008 at 12:51

GoogleCodeExporter commented 9 years ago
Actually this already works by using the invokeMethod(Object tested, Class<?>
declaringClass, String methodToExecute, Object... arguments) method. However we
should add a invokeMethod(Object tested, Class<?> declaringClass, String
methodToExecute, Class<?>[] argumentTypes, Object... arguments) as well.

Original comment by johan.ha...@gmail.com on 28 Oct 2008 at 12:55

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 29 Oct 2008 at 7:08

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 29 Oct 2008 at 2:54