I have a static method in my code that I would like somehow to mock.
I am using jmock.
One way I suppose I could do this is to have "wrapper class" around ...
I read a few threads here about static methods, I probably understand the problems misuse/excessive use of static methods can cause. But I din't really get to the bottom of why ...
I use PowerMock 1.4.7 and JUnit 4.8.2
I need to mock only some static methods and I want others (from the
same class) just to return original value.
When I mock with mockStatic and ...
As i did some research i have found out that PowerMock is able to mock static java methods.
Can someone explain (technically) what is PowerMock doing different than JUnit and ...