Usually you needn't to write unit test just to test whether your plug-in
gotten called and does something good. You must have fine grained predicates
for unit test. Don't test it's not giving exception. If your plug-in have
some heavy logic, very subject to test....
You have to separate this logic and test it without lucene. Otherwise you
will be testing lucene!

Unit test is such sort of test where only and only one class(I am not
counting mocks) to be executed.

On Wed, Apr 30, 2008 at 10:07 AM, Gene Campbell <[EMAIL PROTECTED]>
wrote:

> 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