lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sha...@apache.org
Subject svn commit: r1564713 - in /lucene/dev/branches/branch_4x: ./ solr/ solr/solrj/ solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
Date Wed, 05 Feb 2014 11:42:12 GMT
Author: shalin
Date: Wed Feb  5 11:42:12 2014
New Revision: 1564713

URL: http://svn.apache.org/r1564713
Log:
SOLR-5530: Fix forbidden-api-check failure

Modified:
    lucene/dev/branches/branch_4x/   (props changed)
    lucene/dev/branches/branch_4x/solr/   (props changed)
    lucene/dev/branches/branch_4x/solr/solrj/   (props changed)
    lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java

Modified: lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java?rev=1564713&r1=1564712&r2=1564713&view=diff
==============================================================================
--- lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
(original)
+++ lucene/dev/branches/branch_4x/solr/solrj/src/test/org/apache/solr/client/solrj/response/NoOpResponseParserTest.java
Wed Feb  5 11:42:12 2014
@@ -84,9 +84,9 @@ public class NoOpResponseParserTest exte
     assertResponse(responseString);
   }
 
-  private void assertResponse(String responseString) {
+  private void assertResponse(String responseString) throws IOException {
     ResponseParser xmlResponseParser = new XMLResponseParser();
-    NamedList expectedResponse = xmlResponseParser.processResponse(IOUtils.toInputStream(responseString),
"UTF-8");
+    NamedList expectedResponse = xmlResponseParser.processResponse(IOUtils.toInputStream(responseString,
"UTF-8"), "UTF-8");
     List<SolrDocument> documentList = (List<SolrDocument>) expectedResponse.getAll("response").get(0);
     assertEquals(1, documentList.size());
     SolrDocument solrDocument = documentList.get(0);



Mime
View raw message