mirror of https://github.com/apache/lucene.git
LUCENE-5154: fix test to use getTempDir instead of CWD
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1508717 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a3bcddbb1c
commit
598e546bf4
|
@ -11,6 +11,7 @@ import java.nio.charset.CodingErrorAction;
|
|||
|
||||
import org.apache.lucene.facet.FacetTestCase;
|
||||
import org.apache.lucene.util.IOUtils;
|
||||
import org.apache.lucene.util._TestUtil;
|
||||
import org.junit.Test;
|
||||
|
||||
/*
|
||||
|
@ -83,7 +84,8 @@ public class TestCharBlockArray extends FacetTestCase {
|
|||
|
||||
assertEqualsInternal("GrowingCharArray<->StringBuilder mismatch.", builder, array);
|
||||
|
||||
File f = new File("GrowingCharArrayTest.tmp");
|
||||
File tempDir = _TestUtil.getTempDir("growingchararray");
|
||||
File f = new File(tempDir, "GrowingCharArrayTest.tmp");
|
||||
BufferedOutputStream out = new BufferedOutputStream(new FileOutputStream(f));
|
||||
array.flush(out);
|
||||
out.flush();
|
||||
|
|
Loading…
Reference in New Issue