KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I'm using Mockito in some tests. I have the following classes: class BaseService { public void save() {...} } public Childservice extends BaseService { public void save(){ //some code super.save(); } } I want to mock only the second call ( super.save ) of ChildService . The first call must call the real method. Is there a way to do that?
Tags (comma-separated)
Save Edits
Cancel