You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by ma...@apache.org on 2010/03/20 17:03:37 UTC
svn commit: r925631 -
/lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java
Author: markrmiller
Date: Sat Mar 20 16:03:37 2010
New Revision: 925631
URL: http://svn.apache.org/viewvc?rev=925631&view=rev
Log:
fix test
Modified:
lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java
Modified: lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java?rev=925631&r1=925630&r2=925631&view=diff
==============================================================================
--- lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java (original)
+++ lucene/solr/branches/newtrunk/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java Sat Mar 20 16:03:37 2010
@@ -30,7 +30,7 @@ import java.io.File;
*/
public class RAMDirectoryFactoryTest extends TestCase {
public void testOpenReturnsTheSameForSamePath() throws IOException {
- final Directory directory = new RAMDirectory();
+ final Directory directory = new RefCntRamDirectory();
RAMDirectoryFactory factory = new RAMDirectoryFactory() {
@Override
Directory openNew(String path) throws IOException {
@@ -40,16 +40,16 @@ public class RAMDirectoryFactoryTest ext
String path = "/fake/path";
Directory dir1 = factory.open(path);
Directory dir2 = factory.open(path);
- assertEquals("RAMDirectoryFactory should not create new instance of RAMDirectory " +
+ assertEquals("RAMDirectoryFactory should not create new instance of RefCntRamDirectory " +
"every time open() is called for the same path", directory, dir1);
- assertEquals("RAMDirectoryFactory should not create new instance of RAMDirectory " +
+ assertEquals("RAMDirectoryFactory should not create new instance of RefCntRamDirectory " +
"every time open() is called for the same path", directory, dir2);
}
public void testOpenSucceedForEmptyDir() throws IOException {
RAMDirectoryFactory factory = new RAMDirectoryFactory();
Directory dir = factory.open("/fake/path");
- assertNotNull("RAMDirectoryFactory should create RAMDirectory even if the path doen't lead " +
+ assertNotNull("RAMDirectoryFactory should create RefCntRamDirectory even if the path doen't lead " +
"to index directory on the file system", dir);
}
}