fix path normalization test to match current behavior

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@784951 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Yonik Seeley 2009-06-15 19:57:52 +00:00
parent a1df70286c
commit 588d8fa51e
1 changed files with 3 additions and 1 deletions

View File

@ -29,6 +29,8 @@ import org.apache.solr.request.JSONResponseWriter;
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 @@ public class ResourceLoaderTest extends TestCase
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()