mirror of https://github.com/apache/lucene.git
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:
parent
64407ad2ff
commit
9c825c3184
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue