java - Force test on extension of abstract class -
i have abstract class has test coverage. want make sure extensions of class pass tests of abstract class. there way ensure code using junit?
all method didn't changed in sub-classes checked in test of abstract class. method not changed don't need tested again under scope of extending classes.
if method override vary bad decision apply same tests on them might have different business logic. hence if inherit class should write own tests methods had overridden.
this point of inheritance change or add logic business logic.
Comments
Post a Comment