-
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
Introduce AssertThatString{Contains,DoesNotContain}
Refaster rules
#1479
Introduce AssertThatString{Contains,DoesNotContain}
Refaster rules
#1479
Conversation
Refaster.anyOf( | ||
assertThat(iterable).hasSize(0), | ||
assertThat(iterable.iterator().hasNext()).isFalse(), | ||
assertThat(iterable.iterator()).isExhausted(), | ||
assertThat(Iterables.size(iterable)).isEqualTo(0L), | ||
assertThat(Iterables.size(iterable)).isNotPositive()); | ||
} |
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.
The rules in this class are not yet tested, and require further cleanup/generalization. For now I just added this case here to keep track of it.
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.
Clean 🧹
While there, extend `AssertThatIterableIsEmpty`.
1f50a21
to
b805efb
Compare
Nice 😄 |
Looks good. No mutations were possible for these changes. |
Quality Gate passedIssues Measures |
Suggested commit message: