Closed
Description
Overview
In JUnit 4, if @Test
is declared on an abstract
method in a superclass, then any concrete implementation of the method is not required to redeclare the @Test
annotation. However, JUnit Jupiter currently does not support implicitly inherited annotations on overridden methods.
This is an unintentional difference between JUnit 4 and JUnit Jupiter.
Related Discussions
- https://stackoverflow.com/questions/45162254/why-do-junit-5-tests-not-inherit-test-annotation-from-abstract-classes
- @Ignore not taking effect when used on an overriden test method junit4#695
- bug in ignore an overriding method junit4#468
- stefanbirkner/junit@2607752
Deliverables
- Tweak internal annotation utilities to find implicitly inherited annotations on overridden methods.
- Tweak internal annotation utilities to find implicitly inherited repeated annotations on overridden methods.