-
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 AssertJThrowingCallableRules
Refaster rule collection
#609
Conversation
Looks good. No mutations were possible for these changes. |
8042dc3
to
e11005f
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; LGTM!
AbstractObjectAssert<?, ?> before(ThrowingCallable throwingCallable, String message) { | ||
return assertThatNullPointerException() | ||
.isThrownBy(throwingCallable) | ||
.withMessageContaining(message); |
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.
There are also format string overloads 😬. (But at we're fast reaching the point where a bug checker becomes lighter.)
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.
LGTM 😄
e11005f
to
9f21c5a
Compare
Looks good. No mutations were possible for these changes. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
While applying the Refaster rules internally I found another case that we are missing. This was intended as this list is not meant to be exhaustive. However, I feel it makes sense to be consistent and for that reason I added some of the missing cases for the
assertThatNullPointerException
,assertThatIOException
, andassertThatExceptionOfType
.Now we have a
StartsWith
,MessageContaining
, andMessageNotContaining
for the ones that already hadWithParams
😄.Suggested commit message: