views:

790

answers:

1

Hallo everybody, i'm coding some tests for my solr-indexer application. Following testing best practices, i want to write codes self-dependant, just loading the schema.xml-solrconfig.xml config i want and creating a temporal data tree for the indexing-searching tests. As the application is most written in java, i'm dealing with SolrJ library, but i'm getting problems (well. i'm lost in the universe of corecontainers-coredescriptor-coreconfig-solrcore ...) Anyone can place here some code to create a Embedded Server that loads the config and also writes to a parameter-pased data-dir?

+1  A: 

You can start with the SolrExampleTests which extends SolrExampleTestBase which extends AbstractSolrTestCase

Also take a look at this and this threads.

Mauricio Scheffer