mirror of
https://github.com/apache/lucene.git
synced 2025-02-21 17:46:28 +00:00
use unique temp directories
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022191 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b55f338757
commit
f04c4481c7
@ -215,8 +215,8 @@ public class TestDocBuilder2 extends AbstractDataImportHandlerTestCase {
|
||||
|
||||
@Test
|
||||
public void testFileListEntityProcessor_lastIndexTime() throws Exception {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
|
||||
|
@ -35,8 +35,8 @@ public class TestFileListEntityProcessor extends AbstractDataImportHandlerTestCa
|
||||
@Test
|
||||
@SuppressWarnings("unchecked")
|
||||
public void testSimple() throws IOException {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
createFile(tmpdir, "a.xml", "a.xml".getBytes(), false);
|
||||
@ -61,8 +61,8 @@ public class TestFileListEntityProcessor extends AbstractDataImportHandlerTestCa
|
||||
|
||||
@Test
|
||||
public void testBiggerSmallerFiles() throws IOException {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
long minLength = Long.MAX_VALUE;
|
||||
@ -131,8 +131,8 @@ public class TestFileListEntityProcessor extends AbstractDataImportHandlerTestCa
|
||||
|
||||
@Test
|
||||
public void testNTOT() throws IOException {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
createFile(tmpdir, "a.xml", "a.xml".getBytes(), true);
|
||||
@ -167,8 +167,8 @@ public class TestFileListEntityProcessor extends AbstractDataImportHandlerTestCa
|
||||
|
||||
@Test
|
||||
public void testRECURSION() throws IOException {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
File childdir = new File(tmpdir + "/child" );
|
||||
|
@ -42,12 +42,11 @@ public class TestXPathEntityProcessor extends AbstractDataImportHandlerTestCase
|
||||
|
||||
@Test
|
||||
public void withFieldsAndXpath() throws Exception {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
TestFileListEntityProcessor.createFile(tmpdir, "x.xsl", xsl.getBytes(),
|
||||
false);
|
||||
createFile(tmpdir, "x.xsl", xsl.getBytes(), false);
|
||||
Map entityAttrs = createMap("name", "e", "url", "cd.xml",
|
||||
XPathEntityProcessor.FOR_EACH, "/catalog/cd");
|
||||
List fields = new ArrayList();
|
||||
@ -208,8 +207,8 @@ public class TestXPathEntityProcessor extends AbstractDataImportHandlerTestCase
|
||||
|
||||
@Test
|
||||
public void withDefaultSolrAndXsl() throws Exception {
|
||||
long time = System.currentTimeMillis();
|
||||
File tmpdir = new File("." + time);
|
||||
File tmpdir = File.createTempFile("test", "tmp", TEMP_DIR);
|
||||
tmpdir.delete();
|
||||
tmpdir.mkdir();
|
||||
tmpdir.deleteOnExit();
|
||||
TestFileListEntityProcessor.createFile(tmpdir, "x.xsl", xsl.getBytes(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user