SOLR-1253 -- SolrInfoMBeanTest fails when the project root path contains a plus sign

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@790477 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2009-07-02 07:22:53 +00:00
parent 98150f357a
commit 32b891de4c
1 changed files with 2 additions and 2 deletions

View File

@ -72,7 +72,7 @@ public class SolrInfoMBeanTest extends TestCase
} }
} }
} }
assertTrue( "there are at leaset 10 SolrInfoMBean that should be found in the classpath.", checked > 10 ); assertTrue( "there are at least 10 SolrInfoMBean that should be found in the classpath.", checked > 10 );
} }
private static List<Class> getClassesForPackage(String pckgname) throws Exception { private static List<Class> getClassesForPackage(String pckgname) throws Exception {
@ -81,7 +81,7 @@ public class SolrInfoMBeanTest extends TestCase
String path = pckgname.replace('.', '/'); String path = pckgname.replace('.', '/');
Enumeration<URL> resources = cld.getResources(path); Enumeration<URL> resources = cld.getResources(path);
while (resources.hasMoreElements()) { while (resources.hasMoreElements()) {
directories.add(new File(URLDecoder.decode(resources.nextElement().getPath(), "UTF-8"))); directories.add(new File(resources.nextElement().getPath()));
} }
ArrayList<Class> classes = new ArrayList<Class>(); ArrayList<Class> classes = new ArrayList<Class>();