Skip to content
Snippets Groups Projects
Commit 09528b3e authored by Marius Dumitru Florea's avatar Marius Dumitru Florea
Browse files

[misc] We different versions of Lucene on different branches so we must make...

[misc] We different versions of Lucene on different branches so we must make sure the index folder is not reused across branches during tests.
parent 305b8eb2
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,10 @@
*/
package com.xpn.xwiki.plugin.lucene;
import static junit.framework.Assert.*;
import java.io.File;
import java.util.Date;
import java.util.Locale;
import javax.script.SimpleScriptContext;
......@@ -53,10 +56,6 @@
import com.xpn.xwiki.web.Utils;
import com.xpn.xwiki.web.XWikiServletContext;
import static junit.framework.Assert.assertEquals;
import static junit.framework.Assert.assertFalse;
import static junit.framework.Assert.assertTrue;
/**
* Unit tests for {@link LucenePlugin}. with different Analyzer
*/
......@@ -64,7 +63,10 @@
@AllComponents
public class LuceneAnalyzerTest extends AbstractMockingComponentTestCase<ExecutionContextManager>
{
private final static String INDEXDIR = System.getProperty("java.io.tmpdir") + File.separator + "luceneanalyzertest";
/**
* Make sure the index folder is not reused.
*/
private final static String INDEXDIR = "target" + File.separator + "luceneAnalyzerTest-" + new Date().getTime();
private XWikiDocument document;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment