-
Notifications
You must be signed in to change notification settings - Fork 39
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
Extend size-related AssertJEnumerableRules
Refaster rules
#1512
Conversation
93a6276
to
5aa0832
Compare
Looks good. No mutations were possible for these changes. |
1 similar comment
Looks good. No mutations were possible for these changes. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 👍
EnumerableAssertHasSize*
Refaster rulesAssertJEnumerableRules
Refaster rules
5aa0832
to
ee7defc
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rebased and added a commit. Also updated the suggested commit message; PTAL :)
@BeforeTemplate | ||
AbstractIterableAssert<?, ?, E, ?> before2(AbstractIterableAssert<?, ?, E, ?> enumAssert) { | ||
return Refaster.anyOf( | ||
enumAssert.size().isNotEqualTo(0).returnToIterable(), | ||
enumAssert.size().isPositive().returnToIterable()); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arguably the newly added templates are the correct ones, while the existing ones aren't fully correct. Will add a commit to swap them and call this out.
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
Suggested commit message: