-
Notifications
You must be signed in to change notification settings - Fork 145
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
Issue #847: Support assertWithMessage(...).fail() #848
Issue #847: Support assertWithMessage(...).fail() #848
Conversation
...es/com/github/sevntu/checkstyle/checks/coding/InputRequireFailForTryCatchInJunitCheck11.java
Outdated
Show resolved
Hide resolved
...main/java/com/github/sevntu/checkstyle/checks/coding/RequireFailForTryCatchInJunitCheck.java
Outdated
Show resolved
Hide resolved
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.
items:
...main/java/com/github/sevntu/checkstyle/checks/coding/RequireFailForTryCatchInJunitCheck.java
Outdated
Show resolved
Hide resolved
f266436
to
9556746
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.
@pbludov , please run regression report generation to amke sure there is no regression.
Sevntu regression on an existing check is only possible with https://github.com/checkstyle/contribution/blob/master/checkstyle-tester/sevntu_launch_diff.sh . See checkstyle/contribution#340 . |
9556746
to
a3cbe9c
Compare
@@ -200,7 +202,7 @@ | |||
final String failClassSimpleName = | |||
failClassName.substring(lastDotPos + 1, failClassName.length()); | |||
|
|||
// when "import org.junit.Assert" -> accept "Assertions.fail()" | |||
// when "import org.junit.jupiter.api.Assertions" -> accept "Assertions.fail()" |
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.
Not related to this issue. Just a mistype.
Done: https://pbludov.github.io/issue-847-assert-with-message-fail/ |
Issue #847
This is blocker for checkstyle/checkstyle#9142.