Re: Testing a custom implementation of CommonsHttpSolrServer

2011-12-09 Thread Chris Hostetter
: One thing I want to avoid is having to have a Solr instance set up on : every developers sandbox in order : for the tests to work. What I'm looking for is an embedded solution : which is started up programmatically : BUT is accessed over HTTP. Take a look at SolrJettyTestBase and the tests

Testing a custom implementation of CommonsHttpSolrServer

2011-12-06 Thread Mark Swinson
Hi, I want to test a custom implementation CommonsHttpSolrServer, which is required so that we can enable it to use SSL certificates and proxies when accessing the Solr REST api. One thing I want to avoid is having to have a Solr instance set up on every developers sandbox in order for the tests

Re: Testing a custom implementation of CommonsHttpSolrServer

2011-12-06 Thread Erik Hatcher
Mark - So you want the *server* to be started programmatically? You could use Jetty's API to do this... or fork a JVM. As for client-side SolrJ, you can pass an HttpClient to CommonsHttpSolrServer's constructor to customize how the HTTP connection is configured. EmbeddedSolrServer - no, it