How to mock static method without powermock
(I assume you can use Mockito though) Nothing dedicated comes to my mind but I tend to use the following strategy when it comes to situations like that: 1) In the class under test, replace the static direct call with a call to a package level method that wraps the static call itself: public class … Read more