-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Upgrade junit to 4.13 #51787
Upgrade junit to 4.13 #51787
Conversation
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
@elasticmachine ok to test |
@racevedoo CI has reported test failes, and there are merge conflicts now too. |
@elasticmachine update branch |
merge conflict between base and head |
There are 2 failures that need to be investigated/worked on:
|
This commit renames ElasticsearchAssertions#assertThrows to assertThrown to avoid a naming clash with JUnit 4.13+ and static imports of these methods. Additionally, these methods have been updated to make use of expectThrows internally to avoid duplicating the logic there. Relates elastic#51787
We discussed this PR in the core/infra weekly and while we appreciate the attempt, we don't think it is worth merging at this time. The main reason is that we would like to stay in sync with RandomizedRunner and Lucene as to which junit version we are using. However, we would like to be prepared for that eventuality, so Jay has opened a PR (#52582) to rename the offending method name collisions. |
This commit renames ElasticsearchAssertions#assertThrows to assertRequestBuilderThrows and assertFutureThrows to avoid a naming clash with JUnit 4.13+ and static imports of these methods. Additionally, these methods have been updated to make use of expectThrows internally to avoid duplicating the logic there. Relates #51787
This commit renames ElasticsearchAssertions#assertThrows to assertRequestBuilderThrows and assertFutureThrows to avoid a naming clash with JUnit 4.13+ and static imports of these methods. Additionally, these methods have been updated to make use of expectThrows internally to avoid duplicating the logic there. Relates elastic#51787
This commit renames ElasticsearchAssertions#assertThrows to assertRequestBuilderThrows and assertFutureThrows to avoid a naming clash with JUnit 4.13+ and static imports of these methods. Additionally, these methods have been updated to make use of expectThrows internally to avoid duplicating the logic there. Relates #51787 Backport of #52582
There should be no breaking changes. Release notes at: https://github.com/junit-team/junit4/blob/master/doc/ReleaseNotes4.13.md