Skip to content

Add predicate to find overridden methods #1198

@rweisleder

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()

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