tags:

views:

20

answers:

1

I want to unit test my lucene filter (which extends TokenFilter).

I use maven.

The "BaseTokenStreamTestCase" class looks perfect but I have no idea in which maven artifactId I can find it ?

Any idea ?

A: 

The class o.a.l.a.BaseTokenStreamTestCase.java is part of Lucene's test tree and it doesn't seem to be published as a Maven artifact (I may be wrong but I couldn't find it in any repository search engine). Maybe the easiest way would be to duplicate it in your own sources.

Pascal Thivent
It's of course a solution. You need to duplicate LuceneTestCase and LuceneTestCaseJ4 classes too. Thanks Pascal !
guillaume06
@guillaume06: it's ugly but I don't have a better solution.
Pascal Thivent