Say you want to test a method from class which extends some kind of superclass. Sometimes you can be dependent on code in the superclass, which is undesirable in a test. Now actually, the first thing you should consider is … Continue reading
The post Mock a superclass method with Mockito appeared first on JDriven Blog.