-
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
Rename assertThrows to assertThrown #52582
Conversation
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
Pinging @elastic/es-core-infra (:Core/Infra/Build) |
The name seems to close to that which we are trying to avoid the clash. Could we make it more specific, like |
I renamed the methods to |
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
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
s/assertThrows/assertRequestBuilderThrows as per elastic#52582
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 #51787