Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Static method partial mocking.

 
pawan chopra
Ranch Hand
Posts: 417
jQuery Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We are using PowerMock for unit testing. I could not find partial mocking for static methods. I have seen this http://code.google.com/p/powermock/wiki/MockitoUsage which says that PowerMock contains a method called mockStaticPartials but I couldn't find this method. Can you help me to mock a specific method of static class?
 
Marcin Kwiatkowski
Ranch Hand
Posts: 32
Eclipse IDE Java Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PowerMock is an extension for either EasyMock or Mockito. Are you sure you're using Mockito version?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic