-
Notifications
You must be signed in to change notification settings - Fork 59
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
Replace try-catch constructs in tests with assertThrows #215
Replace try-catch constructs in tests with assertThrows #215
Conversation
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.
Overall these seem like very nice improvements, thanks!
I added some minor questions - I'm not too familiar with the codebase yet so these are not necessarily criticisms of the PR, but more for my understanding ;)
src/test/java/org/apache/commons/jxpath/issues/JXPath113Test.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.
Nice, LGTM! There's one failing GHA job, but that one's marked 'experimental', I think that means we don't expect it to pass.
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.
Hello @strangelookingnerd
Thank you for updating the PR. I have the same comments as before though, see embedded comments.
As requested in #214 (comment)
try-catch
constructs withassertThrows
andassertDoesNotThrow
Verified with
mvn clean verify
that build passes before and after my changes.Overall number of tests and coverage did not change.