Hi,
i have a large project with some old junits and wanted to powermock to it. The project consists of XML, Java Security etc - lots of stuff that is not happy to be changed by the classloader of powermock.
Hence i wanted to ignore basically everything from powermock and only let it alter the few classes i need.
But the mocking will not work when i use @PowerMockIgnore for packages which includes the Class to be mocked.
E.g.
@PowerMockIgnore for org.myproject.*
@PrepareForTest org.myproject.SomeClass.class
PowerMock will show no errors during setup but the class will in the end not be mocked during test.
When i remove the ignore directives it works.
While im on the subject, it would be nice to simply not have powermock alter the classloader for anything but the few classes loaded with PrepareForTest - why isnt this done that way?
Thanks