cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

Junit Testing of Custom codes

Naga_2000
10-Marble

Junit Testing of Custom codes

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

 

 

 

 

 

 

 

0 REPLIES 0
Announcements

Top Tags