Automation Testing, Java

Mocking static methods in JUnit using PowerMock

We usually need to mock lots of functionality while writing unit tests. In JUnit we have many frameworks to achieve this, but PowerMock is very powerfull API to mock classes. For mocking static functions we have a bit different approach due to their different nature. Assuming we have two utility classes with static functions and one...

by Haider Ali
Tag: Mockito
25-Jun-2015