gordonad / powermock

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

Mocking fails if class is not public or protected when doing signed mocking. #32

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When doing signed mocking we change the package name from x.y.z to
powermock.x.y.z. CGLib then fails to create a mock if the class to mock is
neither public or protected. An easy solution would be to change the
visibility of all classes loaded by our classloader to public.

Original issue reported on code.google.com by johan.ha...@gmail.com on 23 Oct 2008 at 9:31

GoogleCodeExporter commented 9 years ago
Fixed so that for it works to mock package private classes (even if they're 
signed)

Original comment by johan.ha...@gmail.com on 26 Oct 2008 at 8:22