ahmaddarawshi / powermock

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

set/getInternalState should be able to set state depending on the field type or annotation #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This would be a nice feature because then you can refactor the field name
without alterting the test. E.g. 

setInternalState(instance, Service.class, serviceInstance);

would set the serviceInstance to the first field of type Service.class.

Original issue reported on code.google.com by johan.ha...@gmail.com on 7 Nov 2008 at 9:58

GoogleCodeExporter commented 9 years ago
Implemented the ability to set and get internal state based on field type

Original comment by johan.ha...@gmail.com on 12 Nov 2008 at 12:32