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

Support generic return type in Whitebox #162

Closed
johanhaleby opened this issue Jul 23, 2015 · 2 comments
Closed

Support generic return type in Whitebox #162

johanhaleby opened this issue Jul 23, 2015 · 2 comments

Comments

@johanhaleby
Copy link
Collaborator

From johan.ha...@gmail.com on August 27, 2009 14:22:21

E.g. public static Object getInternalState(Object object, String fieldName)
should be public static T getInternalState(Object object, String
fieldName) because then you can do:

Whitebox.<Set> getInternalState(instance, "mySet")

to have getInternalState return a Set instead of Object.

Original issue: http://code.google.com/p/powermock/issues/detail?id=142

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on August 27, 2009 14:08:01

implementes for getInternalState but also needs implementation for invokeMethod

@johanhaleby
Copy link
Collaborator Author

From johan.ha...@gmail.com on September 01, 2009 06:20:23

Status: 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