Skip to content

[FEATURE] equals/hashCode on API objects #312

@ginkel

Description

@ginkel

Is your feature request related to a problem?

While developing unit tests for code that makes use of opensearch-java we noticed that the invocations are pretty hard to mock/verify (e.g., using Mockito) as the API objects do not implement equals/hashCode. This causes the effect that it is very hard to verify that a method has been invoked with a certain API object as its argument just uses Object.equals for its equals implementation.

What solution would you like?

Implement equals/hashCode on all API POJOs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions