even if it resolves to the same value I agree it's more consistent to use
the TEST_VERSION_CURRENT, thanks Hoss.
Tommaso

2012/7/16 Chris Hostetter <hossman_luc...@fucit.org>

>
> : URL: http://svn.apache.org/viewvc?rev=1361819&view=rev
> : Log:
> : [LUCENE-4207] - updated LuceneVersion to 5.0
>
> Isn't this what LuceneTestCase.TEST_VERSION_CURRENT is for?
>
> :    public void baseUIMAAnalyzerIntegrationTest() throws Exception {
> :      Directory dir = new RAMDirectory();
> : -    IndexWriter writer = new IndexWriter(dir, new
> IndexWriterConfig(Version.LUCENE_40, analyzer));
> : +    IndexWriter writer = new IndexWriter(dir, new
> IndexWriterConfig(Version.LUCENE_50, analyzer));
> :      // add the first doc
> :      Document doc = new Document();
> :      String dummyTitle = "this is a dummy title ";
>
> -Hoss
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
> For additional commands, e-mail: dev-h...@lucene.apache.org
>
>

Reply via email to