Meaningless Drivel is fun!*
The moose likes Testing and the fly likes Question on Powermockito Partial Mocking Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Question on Powermockito Partial Mocking" Watch "Question on Powermockito Partial Mocking" New topic
Author

Question on Powermockito Partial Mocking

Ronwaldo Cruz
Ranch Hand

Joined: Oct 17, 2006
Posts: 69
Hi,

I'm trying to do partial mocking in PowerMockito v 1.2.5 with the following code:



I get the following error:



It seems to me like PowerMockito mocked the whole object and not just the method. When running methodA, nothing inside it gets executed hence the exception because methodB was never called.

Anybody has an idea? Thanks

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question on Powermockito Partial Mocking
 
Similar Threads
PowerMockito + Junit + Ant
"cannot be applied to" error using XML
EASY MOCK
easy mock
Supress call from super keyword with powermockito