Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
GoogleCodeExporter opened this issue Nov 18, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

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
Copy link
Author

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
Copy link
Author

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

  • Added labels: Priority-Critical
  • Removed labels: Priority-High

@GoogleCodeExporter
Copy link
Author

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

  • Changed state: Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant