Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add predicate to find overridden methods #1198

Open
rweisleder opened this issue Nov 19, 2023 · 0 comments · May be fixed by #1200
Open

Add predicate to find overridden methods #1198

rweisleder opened this issue Nov 19, 2023 · 0 comments · May be fixed by #1200

Comments

@rweisleder
Copy link
Contributor

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()
rweisleder added a commit to rweisleder/ArchUnit that referenced this issue Nov 20, 2023
codecholeric pushed a commit to rweisleder/ArchUnit that referenced this issue Apr 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant