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:
Uwe Schindler 2011-02-04 12:37:31 +00:00
parent 783c8fd7b5
commit 7c69aee7cc
2 changed files with 2 additions and 2 deletions

View File

@ -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() ) );
}

View File

@ -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;
}