Skip to content

Add predicate to find overridden methods #1198

Open

Description

@rweisleder

Because I implement/copy it now probably for the third time: It would be great if ArchUnit would provide methods/predicates with which you can check whether a method overrides / implements a method from a base class or from an interface.

As suggested in #359 (comment):

  • methods().that().areOverridden()
  • methods().should().beOverridden()
  • JavaMethod.isOverridden()
  • JavaMethod.Predicates.overridden()

Activity

  1. added a commit that references this issue on Nov 20, 2023
    c8563d9
  2. added a commit that references this issue on Apr 20, 2024
    20ec269
  3. FlorianCassayre commented on Apr 24, 2026

    @FlorianCassayre

    Any news? This seems quite an essential feature, a bit strange that we need to re-implement it ourselves...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions