Is there a way to mock a static method with a parameter.
I have seen many questions regarding this question, but I am not able to find any related to it.
Example : Helper.class has a static method called getName(String abc);
I want to mock method getName, the same way I can mock a normal method.
I tried using PowerMockito but it didnt work.
Edit: I m getting MissingmrthodInvocationException : when() requires an argument wjich has to be 'a method call on a mock'
Its resolved by declaring PowerMockito.when().thenReturn() using @Before in setup block