From 9c825c318497165dd6106081e3f6840878cfb146 Mon Sep 17 00:00:00 2001 From: Robert Muir Date: Thu, 5 Jul 2012 13:24:30 +0000 Subject: [PATCH] LUCENE-4194: fix test git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1357595 13f79535-47bb-0310-9956-ffa450edef68 --- .../test/org/apache/lucene/search/TestPositionIncrement.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java b/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java index 19e9341d19c..89571d60e03 100644 --- a/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java +++ b/lucene/core/src/test/org/apache/lucene/search/TestPositionIncrement.java @@ -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 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"); }