nazymko / powermock

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

Support generic return type in Whitebox #142

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
E.g. public static Object getInternalState(Object object, String fieldName)
should be public static <T> T getInternalState(Object object, String
fieldName) because then you can do:

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

to have getInternalState return a Set<String> instead of Object.

Original issue reported on code.google.com by johan.ha...@gmail.com on 27 Aug 2009 at 12:22

GoogleCodeExporter commented 9 years ago
implementes for getInternalState but also needs implementation for invokeMethod

Original comment by johan.ha...@gmail.com on 27 Aug 2009 at 9:08

GoogleCodeExporter commented 9 years ago

Original comment by johan.ha...@gmail.com on 1 Sep 2009 at 1:20