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

Support for verifying a package and all sub-packages #423

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

Kobee1203
Copy link

I added a new method EqualsVerifier.forPackage(String packageName, boolean scanRecursively) to verify a given package and all sub-packages.

This is useful when we organize our beans with sub-packages and don't want to forget to test a sub-package.

To String Verifier project offers an equivalent method:
https://github.com/jparams/to-string-verifier/blob/c5b1c6666d78b5fc7c9b07e81d48582b4d34fcb4/src/main/java/com/jparams/verifier/tostring/ToStringVerifier.java#L117

Copy link
Owner

@jqno jqno left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! Thanks for the PR! This looks like a very useful feature to add, and the implementation looks quite clean: thanks!

I have one small question in the code though.
Also, would you mind running mvn spotless:apply so we can see some more green checks in GitHub Actions? :)

I'll definitely merge this if you do, and cut a release soon!

@jqno jqno merged commit 2ff8f10 into jqno:main Apr 19, 2021
@jqno
Copy link
Owner

jqno commented Apr 19, 2021

Thank you very much for this PR. I've just released version 3.6.

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 this pull request may close these issues.

2 participants