LUCENE-4194: fix test

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1357595 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Robert Muir 2012-07-05 13:24:30 +00:00
parent 64407ad2ff
commit 9c825c3184
1 changed files with 2 additions and 2 deletions

View File

@ -254,7 +254,7 @@ public class TestPositionIncrement extends LuceneTestCase {
for (byte[] bytes : payloads) {
count++;
if (VERBOSE) {
System.out.println(" payload: " + new String(bytes));
System.out.println(" payload: " + new String(bytes, "UTF-8"));
}
}
}
@ -281,7 +281,7 @@ public class TestPositionIncrement extends LuceneTestCase {
Collection<byte[]> pls = psu.getPayloadsForQuery(snq);
count = pls.size();
for (byte[] bytes : pls) {
String s = new String(bytes);
String s = new String(bytes, "UTF-8");
//System.out.println(s);
sawZero |= s.equals("pos: 0");
}