lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject cvs commit: jakarta-lucene/src/test/org/apache/lucene/search TestMultiSearcher.java
Date Tue, 26 Nov 2002 17:31:43 GMT
cutting     2002/11/26 09:31:43

  Modified:    src/test/org/apache/lucene/search TestMultiSearcher.java
  Log:
  Fixed to not create files in home directory.
  
  Revision  Changes    Path
  1.4       +5 -9      jakarta-lucene/src/test/org/apache/lucene/search/TestMultiSearcher.java
  
  Index: TestMultiSearcher.java
  ===================================================================
  RCS file: /home/cvs/jakarta-lucene/src/test/org/apache/lucene/search/TestMultiSearcher.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- TestMultiSearcher.java	19 Sep 2002 12:35:43 -0000	1.3
  +++ TestMultiSearcher.java	26 Nov 2002 17:31:43 -0000	1.4
  @@ -62,11 +62,11 @@
   import org.apache.lucene.index.Term;
   import org.apache.lucene.queryParser.QueryParser;
   import org.apache.lucene.search.Searcher;
  -import org.apache.lucene.store.FSDirectory;
  +import org.apache.lucene.store.Directory;
  +import org.apache.lucene.store.RAMDirectory;
   
   import junit.framework.TestCase;
   
  -import java.io.File;
   import java.io.IOException;
   
   /**
  @@ -84,13 +84,9 @@
       public void testEmptyIndex()
           throws Exception
       {
  -        // creating file's for the FSDirectories
  -        File a = new File(System.getProperty("user.home"), "indexStoreA");
  -        File b = new File(System.getProperty("user.home"), "indexStoreB");
  -
           // creating two directories for indices
  -        FSDirectory indexStoreA = FSDirectory.getDirectory(a, true);
  -        FSDirectory indexStoreB = FSDirectory.getDirectory(b, true);
  +        Directory indexStoreA = new RAMDirectory();
  +        Directory indexStoreB = new RAMDirectory();
   
           // creating a document to store
           Document lDoc = new Document();
  
  
  

--
To unsubscribe, e-mail:   <mailto:lucene-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-dev-help@jakarta.apache.org>


Mime
View raw message