Is there a way say,
import org.junit.Test;
public interface ITest {
@Test
public void runTest();
}
when I inherit this in a class it will automatically do this
public class Test implements ITest {
@Test
public void runTest() { }
}
instead of @Override?
By default annotations in Java are not inherited. If an annotation type has the meta-annotation
@Inheritedthen it will be, but I don’t think@Testdoes.