From 25d2c54856517ba02157604970c72395ab6e0262 Mon Sep 17 00:00:00 2001 From: Mark Robert Miller Date: Sat, 20 Mar 2010 16:03:37 +0000 Subject: [PATCH] fix test git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/branches/newtrunk@925631 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/solr/core/RAMDirectoryFactoryTest.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java b/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java index 16ef98a14aa..c5090a24d72 100644 --- a/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java +++ b/solr/src/test/org/apache/solr/core/RAMDirectoryFactoryTest.java @@ -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 extends TestCase { 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); } }