mirror of https://github.com/apache/lucene.git
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:
parent
98150f357a
commit
32b891de4c
|
@ -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 {
|
||||
|
@ -81,7 +81,7 @@ public class SolrInfoMBeanTest extends TestCase
|
|||
String path = pckgname.replace('.', '/');
|
||||
Enumeration<URL> resources = cld.getResources(path);
|
||||
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>();
|
||||
|
|
Loading…
Reference in New Issue