gordonad / powermock

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

Could we use duck-typing to mock system classes? #77

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Would this be possible? Could we perhaps replace the call to a system class
from the caller to a mock using duck-typing? 

Original issue reported on code.google.com by johan.ha...@gmail.com on 17 Nov 2008 at 10:05

GoogleCodeExporter commented 9 years ago
We probably need to switch to asm for this

Original comment by johan.ha...@gmail.com on 4 Dec 2008 at 8:12

GoogleCodeExporter commented 9 years ago
Nope, javassist has a low-level API as well

Original comment by johan.ha...@gmail.com on 16 Dec 2008 at 10:35

GoogleCodeExporter commented 9 years ago
Non-final system classes are now mockable

Original comment by johan.ha...@gmail.com on 24 Jan 2009 at 6:54

GoogleCodeExporter commented 9 years ago
Final system classes are now mockable as well!

Original comment by johan.ha...@gmail.com on 27 Feb 2009 at 4:05