lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r784951 - /lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java
Date Mon, 15 Jun 2009 19:57:52 GMT
Author: yonik
Date: Mon Jun 15 19:57:52 2009
New Revision: 784951

URL: http://svn.apache.org/viewvc?rev=784951&view=rev
Log:
fix path normalization test to match current behavior

Modified:
    lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java

Modified: lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java?rev=784951&r1=784950&r2=784951&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/core/ResourceLoaderTest.java Mon Jun 15 19:57:52
2009
@@ -29,6 +29,8 @@
 import org.apache.solr.util.plugin.ResourceLoaderAware;
 import org.apache.solr.util.plugin.SolrCoreAware;
 
+import java.io.File;
+
 public class ResourceLoaderTest extends TestCase 
 {
   public void testInstanceDir() throws Exception {
@@ -38,7 +40,7 @@
 
     loader = new SolrResourceLoader("solr");
     instDir = loader.getInstanceDir();
-    assertTrue(instDir + " is not equal to " + "solr/", instDir.equals("solr/") == true);
+    assertTrue(instDir + " is not equal to " + "solr/", instDir.equals("solr" + File.separator)
== true);
   }
 
   public void testAwareCompatibility() 



Mime
View raw message