finn-no / solr-integrationtest-support

Integration testing with Solr made easy
http://finn-no.github.io/solr-integrationtest-support/development/javadocs
Apache License 2.0
3 stars 0 forks source link

SolrTestServer should maintain as little mutable state as possible - Remove QueryResponse field #4

Closed chriswk closed 8 years ago

chriswk commented 8 years ago

Currently SolrTestServer manipulates a class field for both SolrQuery and QueryResponse, these fields should ideally be immutable, and the methods currently manipulating them should instead return them for further usage.

Pros