You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Jason Gerlowski (Jira)" <ji...@apache.org> on 2020/06/26 14:51:00 UTC

[jira] [Created] (SOLR-14596) Add equals()/hashCode() impls to SolrJ Request objects

Jason Gerlowski created SOLR-14596:
--------------------------------------

             Summary: Add equals()/hashCode() impls to SolrJ Request objects
                 Key: SOLR-14596
                 URL: https://issues.apache.org/jira/browse/SOLR-14596
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrJ
    Affects Versions: 8.5.2, master (9.0)
            Reporter: Jason Gerlowski


Currently, many SolrRequest classes (e.g. UpdateRequest) don't implement {{equals()}} or {{hashCode()}}

This isn't a problem for Solr's normal operation, but it can be a barrier in unit testing SolrJ client code.  {{equals()}} implementations would make it much easier to assert that client code is building the request that developers _think_ it's building.  Of course, this testing benefit would apply to Solr's own tests which use SolrJ.

This ticket covers making sure that the more popular SolrRequest objects have equals/hashcode implementations useful for testers.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org