gordonad / powermock

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

Whitebox setInternalState should have support for setting an instance without specifying field name #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It would be really cool to be able to do Whitebox.setInternalState(object,
dependencyImpl). 

Original issue reported on code.google.com by johan.ha...@gmail.com on 12 Nov 2008 at 12:33

GoogleCodeExporter commented 8 years ago
Implemented the ability to set internal state based on an object type, i.e. you 
can
now do setInternalState(object, myServiceImpl) to set the first field in object 
which
can be assignable to myServiceImpl. This means that you get refactor friendly 
code
while still being able to set internal state.

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