CODEC-285 Base32InputStreamTest testReadOutOfBounds#43
Closed
nhojpatrick wants to merge 4 commits into
Closed
Conversation
8fb8d75 to
dc77c32
Compare
dc77c32 to
5124cc9
Compare
5124cc9 to
25f3e97
Compare
Member
|
Please, let's not add assertions on the contents of exception messages, that's a maintenance headache. |
Contributor
Author
|
Not checking exception message it like just checking a method returns a non null value. It's not like I'm checking the stackstrace and asserting the correct line that the test is expecting is throwing the exception. |
Member
|
Closing: Superseded in git master (commit 5a03f5a) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow up for PR #39
From experience people write tests that don't check exceptions correctly, either they are not thrown, or a different than expected line throws that exception, or it's the wrong exception, or wrong message.
Using assertAll and assertThrows to explicitly check the expected line throws the expected exception, and all done in parallel not sequentially.