mirror of https://github.com/apache/lucene.git
More charset violations
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1067165 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
783c8fd7b5
commit
7c69aee7cc
|
@ -43,7 +43,7 @@ public class ContentStreamTest extends LuceneTestCase
|
|||
String input = "aads ghaskdgasgldj asl sadg ajdsg &jag # @ hjsakg hsakdg hjkas s";
|
||||
ContentStreamBase stream = new ContentStreamBase.StringStream( input );
|
||||
assertEquals( input.length(), stream.getSize().intValue() );
|
||||
assertEquals( input, IOUtils.toString( stream.getStream() ) );
|
||||
assertEquals( input, IOUtils.toString( stream.getStream(), "UTF-8" ) );
|
||||
assertEquals( input, IOUtils.toString( stream.getReader() ) );
|
||||
}
|
||||
|
||||
|
|
|
@ -655,7 +655,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
|||
try {
|
||||
url = new URL(masterUrl);
|
||||
stream = url.openStream();
|
||||
response = IOUtils.toString(stream);
|
||||
response = IOUtils.toString(stream, "UTF-8");
|
||||
if(response.contains("<str name=\"status\">success</str>")) {
|
||||
success = true;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue