Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
Hii,
I am unable to mock static methods while writing Junit test cases for Customizations. For example: the static methods ProcessHelper.checkRequestSubmitted(ChangeItem) and PersistenceHelper.manager.save(). If we dont mock this static method means, it requires method server to be on running state while running Junit test cases which is not recommended by PTC. I have also tried with all the powermock jars, but still not working. Can anyone help me how to mock these static ones?
Thanks,
Naga
