There are times when we need to unit-test methods of a concrete subclass, which colloborate with methods of the abstract superclass. The key requirement is that we want to unit-test the subclass methods in isolation; without bothering about the collaborating methods in the abstract superclass.
Lets take a look at a simple example : Dog extends Animal.
Filed under Java, Testing | 6 Comments »