Skip to content

Detect annotations on overridden super type methods #960

Closed
@sormuras

Description

@sormuras

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

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions