Skip to content

Improve coverage of equals/hashCode tests for IntervalQueryBuilder#49820

Merged
romseygeek merged 3 commits intoelastic:masterfrom
romseygeek:intervals-wire-tests
Dec 4, 2019
Merged

Improve coverage of equals/hashCode tests for IntervalQueryBuilder#49820
romseygeek merged 3 commits intoelastic:masterfrom
romseygeek:intervals-wire-tests

Conversation

@romseygeek
Copy link
Copy Markdown
Contributor

By default, AbstractQueryTestCase only changes name and boost in its mutateInstance
method, used when checking equals and hashcode implementations. This commit adds
a mutateInstance method to InveralQueryBuilderTests that will check hashcode and
equality when the field or intervals source are changed.

@romseygeek romseygeek added >test Issues or PRs that are addressing/adding tests :Search/Search Search-related issues that do not fall into other categories v8.0.0 v7.6.0 labels Dec 4, 2019
@romseygeek romseygeek requested a review from cbuescher December 4, 2019 09:14
@romseygeek romseygeek self-assigned this Dec 4, 2019
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-search (:Search/Search)

Copy link
Copy Markdown
Member

@cbuescher cbuescher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding this, LGTM.

@romseygeek romseygeek merged commit 1d3aba1 into elastic:master Dec 4, 2019
@romseygeek romseygeek deleted the intervals-wire-tests branch December 4, 2019 11:32
romseygeek added a commit that referenced this pull request Dec 4, 2019
…49820)

By default, AbstractQueryTestCase only changes name and boost in its mutateInstance
method, used when checking equals and hashcode implementations. This commit adds
a mutateInstance method to InveralQueryBuilderTests that will check hashcode and
equality when the field or intervals source are changed.
SivagurunathanV pushed a commit to SivagurunathanV/elasticsearch that referenced this pull request Jan 23, 2020
…lastic#49820)

By default, AbstractQueryTestCase only changes name and boost in its mutateInstance
method, used when checking equals and hashcode implementations. This commit adds
a mutateInstance method to InveralQueryBuilderTests that will check hashcode and
equality when the field or intervals source are changed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Search/Search Search-related issues that do not fall into other categories >test Issues or PRs that are addressing/adding tests v7.6.0 v8.0.0-alpha1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants