Hello,

On our project, we have quite a bit of code used to generate Solr queries, and 
I need to create some unit tests to ensure that these continue to work.  In 
addition, I need to generate some unit tests that will test indexing and 
retrieval of certain documents, based on our current schema and the application 
logic that generates the indexable documents as well as generates the Solr 
queries.

My question is - what's the best way for me to unit test our Solr integration?

I'd like to be able to spin up an embedded/in-memory solr, or that failing just 
start one up as part of my test case setup, fill it with interesting documents, 
and do some queries, comparing the results to expected results.

Are there wiki pages or other documented examples of doing this?  It seems 
rather straight-forward, but who knows, it may be dead simple with some unknown 
feature.

Thanks!
-Joe

Reply via email to