lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r815247 - in /lucene/solr/trunk/src/java/org/apache/solr/util: AbstractSolrTestCase.java TestHarness.java
Date Tue, 15 Sep 2009 10:05:23 GMT
Author: shalin
Date: Tue Sep 15 10:05:22 2009
New Revision: 815247

URL: http://svn.apache.org/viewvc?rev=815247&view=rev
Log:
SOLR-1430 -- AbstractSolrTestCase ignores arguments for commit and optimize commands

Modified:
    lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java
    lucene/solr/trunk/src/java/org/apache/solr/util/TestHarness.java

Modified: lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java?rev=815247&r1=815246&r2=815247&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/util/AbstractSolrTestCase.java Tue Sep 15 10:05:22
2009
@@ -207,13 +207,13 @@
    * @see TestHarness#optimize
    */
   public String optimize(String... args) {
-    return h.optimize();
+    return h.optimize(args);
   }
   /**
    * @see TestHarness#commit
    */
   public String commit(String... args) {
-    return h.commit();
+    return h.commit(args);
   }
 
   /**

Modified: lucene/solr/trunk/src/java/org/apache/solr/util/TestHarness.java
URL: http://svn.apache.org/viewvc/lucene/solr/trunk/src/java/org/apache/solr/util/TestHarness.java?rev=815247&r1=815246&r2=815247&view=diff
==============================================================================
--- lucene/solr/trunk/src/java/org/apache/solr/util/TestHarness.java (original)
+++ lucene/solr/trunk/src/java/org/apache/solr/util/TestHarness.java Tue Sep 15 10:05:22 2009
@@ -489,7 +489,7 @@
       if (null == args || 0 == args.length) {
         XML.writeXML(r, tag, null);
       } else {
-        XML.writeXML(r, tag, null, (Object)args);
+        XML.writeXML(r, tag, null, (Object[])args);
       }
       return r.getBuffer().toString();
     } catch (IOException e) {



Mime
View raw message