lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r790477 - /lucene/solr/trunk/src/test/org/apache/solr/SolrInfoMBeanTest.java
Date Thu, 02 Jul 2009 07:22:53 GMT
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>();



Mime
View raw message