mirror of https://github.com/apache/lucene.git
SOLR-5530: Fix forbidden-api-check failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1564712 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
e262c75e81
commit
315263e31f
|
@ -85,9 +85,9 @@ public class NoOpResponseParserTest extends SolrJettyTestBase {
|
|||
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);
|
||||
|
|
Loading…
Reference in New Issue