don't print to stdout in test cases

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@202414 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Daniel Naber 2005-06-29 19:12:55 +00:00
parent 04b155a227
commit 7d60bb8214
1 changed files with 2 additions and 2 deletions

View File

@ -143,10 +143,10 @@ public class TestSpansAdvanced extends TestCase {
final float[] expectedScores) throws IOException { final float[] expectedScores) throws IOException {
// display the hits // display the hits
System.out.println(hits.length() + " hits for search: \"" + description + '\"'); /*System.out.println(hits.length() + " hits for search: \"" + description + '\"');
for (int i = 0; i < hits.length(); i++) { for (int i = 0; i < hits.length(); i++) {
System.out.println(" " + FIELD_ID + ':' + hits.doc(i).get(FIELD_ID) + " (score:" + hits.score(i) + ')'); System.out.println(" " + FIELD_ID + ':' + hits.doc(i).get(FIELD_ID) + " (score:" + hits.score(i) + ')');
} }*/
// did we get the hits we expected // did we get the hits we expected
assertEquals(expectedIds.length, hits.length()); assertEquals(expectedIds.length, hits.length());