Gene,

Have a look at Lucene in Action ( manning.com ) and its source code (freely 
downloadable).  All the code is written as unit tests, including index building.

Otis
--
Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch

----- Original Message ----
> From: Gene Campbell <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Wednesday, April 30, 2008 1:07:54 AM
> Subject: unit tests for indexing
> 
> Is there an example somewhere of creating an index with a jUnit test class?
> I've created a IndexingFilter plugin, and would like to unit test it.  I
> need to run code
> that will try index something, so I can see if my plugin gets called and
> does something
> good.
> 


Reply via email to