You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by sh...@apache.org on 2009/07/02 09:22:53 UTC

svn commit: r790477 - /lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java

Author: shalin
Date: Thu Jul  2 07:22:53 2009
New Revision: 790477

URL: http://svn.apache.org/viewvc?rev=790477&view=rev
Log:
SOLR-1253 -- SolrInfoMBeanTest fails when the project root path contains a plus sign

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

Modified: lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java?rev=790477&r1=790476&r2=790477&view=diff
==============================================================================
--- lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java (original)
+++ lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java Thu Jul  2 07:22:53 2009
@@ -72,7 +72,7 @@
         }
       }
     }
-    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 @@
     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>();