lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson (JIRA)" <>
Subject [jira] [Commented] (SOLR-1413) Add MockSolrServer to SolrJ client tests
Date Sat, 13 Apr 2013 21:28:15 GMT


Erick Erickson commented on SOLR-1413:

SPRING_CLEANING_2013 JIRAS Still hasn't been done, but lots of work has happened in the test
infrastructure. Is this still valid?
> Add MockSolrServer to SolrJ client tests
> ----------------------------------------
>                 Key: SOLR-1413
>                 URL:
>             Project: Solr
>          Issue Type: Test
>          Components: clients - java
>         Environment: Any Solr distribution. Uses only the SolrJ client code, nothing
in the Solr core.
>            Reporter: Lance Norskog
>            Priority: Minor
>         Attachments: SOLR-1413.patch, SOLR-1413.patch
> The SolrJ unit test suite has no "mock" solr server for HTTP access, and there are no
low-level tests of the Solrj HTTP wire protocols.
> This patch includes and
The mock server does not parse its input and responds with pre-configured byte streams. The
latter does a few tests in the XML wire format. Most of the tests do one request and set up
success and failure responses.
> Unfortunately, there is a bug: I could not get 2 successive requests to work. The mock
server's TCP socket does not work when reading the second request.  If someone who knows the
JDK socket classes could look at the mock server, I would greatly appreciate it.
> The alternative is to steal a bunch of files from the apache commons httpclient test
suite. This is a quite sophisticate bunch of code:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message