I have created a small code using JUnit framework. I have create total 3 classes a)Parent class containing 2 methods b)Child class extends Parent class containing 2 another methods specific to child class c)Main class with RunWith to execute the classes Parent and Child
Issue:Execution, when Parent and child are called through main method, methods in parent executing twice. Say Parent have methods A() and B() Child have methods C() and D() When running main method with Parent.class, Child.class the methods in Parent executing twice