I\'m setting up mocking a class\' static methods. I have to do this in a @Before-annotated JUnit setup method.
My goal is to setup the class to call re
Though I'm late to the party, but we can achieve partial mocking and override the default behavior of mocked object by explicitly specifying it.
Below example show how we can make PowerMockito to call real methods if behavior isn't defined explicitly:
e.g. PowerMockito.mockStatic(MyClass.class, new CallsRealMethods());