I have created One Junit class Parent with Before and After Annotation. As I dont have access to change the parent and it is also must for me to Extends That Class Only.I Want to Avoid the Before and after for some of my Child Class TestCase.
Parent.class is in JAR1
public class Parent {
@Before
public void RunBefore_EveryTestCase()
{}
@After
public void RunAfter_EveryTestCase()
{}
child.class is in JAR2
import Parent;
public class Child extends Parent{
@Test1
/////////////////I DONT Want to Run Before and After inherit From Parent
public void RunBefore_EveryTestCase()
{}