lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From yo...@apache.org
Subject svn commit: r923195 - /lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java
Date Mon, 15 Mar 2010 12:40:18 GMT
Author: yonik
Date: Mon Mar 15 12:40:17 2010
New Revision: 923195

URL: http://svn.apache.org/viewvc?rev=923195&view=rev
Log:
remove debugging prints from tests

Modified:
    lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java

Modified: lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java
URL: http://svn.apache.org/viewvc/lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java?rev=923195&r1=923194&r2=923195&view=diff
==============================================================================
--- lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java
(original)
+++ lucene/solr/branches/solr/src/test/org/apache/solr/analysis/HTMLStripCharFilterTest.java
Mon Mar 15 12:40:17 2010
@@ -64,7 +64,7 @@ public class HTMLStripCharFilterTest ext
               + " Buffer so far: " + builder + "<EOB>", theChar == goldArray[position]);
       position++;
     }
-    assertTrue(gold + " is not equal to " + builder.toString(), gold.equals(builder.toString())
== true);
+    assertEquals(gold, builder.toString());
   }
 
   //Some sanity checks, but not a full-fledged check
@@ -97,8 +97,8 @@ public class HTMLStripCharFilterTest ext
       builder.append((char)ch);
     }
     String result = builder.toString();
-    System.out.println("Resu: " + result + "<EOL>");
-    System.out.println("Gold: " + gold + "<EOL>");
+    // System.out.println("Resu: " + result + "<EOL>");
+    // System.out.println("Gold: " + gold + "<EOL>");
     assertTrue(result + " is not equal to " + gold + "<EOS>", result.equals(gold) ==
true);
   }
 
@@ -114,8 +114,8 @@ public class HTMLStripCharFilterTest ext
       builder.append((char)ch);
     }
     String result = builder.toString();
-    System.out.println("Resu: " + result + "<EOL>");
-    System.out.println("Gold: " + gold + "<EOL>");
+    // System.out.println("Resu: " + result + "<EOL>");
+    // System.out.println("Gold: " + gold + "<EOL>");
     assertTrue(result + " is not equal to " + gold + "<EOS>", result.equals(gold) ==
true);
   }
 
@@ -131,8 +131,8 @@ public class HTMLStripCharFilterTest ext
       builder.append((char)ch);
     }
     String result = builder.toString();
-    System.out.println("Resu: " + result + "<EOL>");
-    System.out.println("Gold: " + gold + "<EOL>");
+    // System.out.println("Resu: " + result + "<EOL>");
+    // System.out.println("Gold: " + gold + "<EOL>");
     assertTrue(result + " is not equal to " + gold, result.equals(gold) == true);
   }
 
@@ -147,7 +147,7 @@ public class HTMLStripCharFilterTest ext
       builder.append((char)ch);
     }
     String result = builder.toString();
-    System.out.println("Result: " + result);
+    // System.out.println("Result: " + result);
     assertTrue("Escaped tag not preserved: "  + result.indexOf("reserved"), result.indexOf("reserved")
== 9);
     assertTrue("Escaped tag not preserved: " + result.indexOf("reserved", 15), result.indexOf("reserved",
15) == 38);
     assertTrue("Escaped tag not preserved: " + result.indexOf("reserved", 41), result.indexOf("reserved",
41) == 54);
@@ -164,8 +164,8 @@ public class HTMLStripCharFilterTest ext
       builder.append((char)ch);
     }
     String result = builder.toString();
-    System.out.println("Resu: " + result + "<EOL>");
-    System.out.println("Gold: " + gold + "<EOL>");
+    // System.out.println("Resu: " + result + "<EOL>");
+    // System.out.println("Gold: " + gold + "<EOL>");
     assertTrue(result + " is not equal to " + gold + "<EOS>", result.equals(gold) ==
true);
   }
 
@@ -205,7 +205,7 @@ public class HTMLStripCharFilterTest ext
 
 
   private void processBuffer(String test, String assertMsg) throws IOException {
-    System.out.println("-------------------processBuffer----------");
+    // System.out.println("-------------------processBuffer----------");
     Reader reader = new HTMLStripCharFilter(CharReader.get(new BufferedReader(new StringReader(test))));//force
the use of BufferedReader
     int ch = 0;
     StringBuilder builder = new StringBuilder();
@@ -214,7 +214,7 @@ public class HTMLStripCharFilterTest ext
         builder.append((char)ch);
       }
     } finally {
-      System.out.println("String (trimmed): " + builder.toString().trim() + "<EOS>");
+      // System.out.println("String (trimmed): " + builder.toString().trim() + "<EOS>");
     }
     assertTrue(assertMsg + "::: " + builder.toString() + " is not equal to " + test, builder.toString().equals(test)
== true);
   }
@@ -231,7 +231,7 @@ public class HTMLStripCharFilterTest ext
         builder.append((char)ch);
       }
     } finally {
-      System.out.println("String: " + builder.toString());
+      // System.out.println("String: " + builder.toString());
     }
     assertTrue(builder.toString() + " is not equal to " + gold + "<EOS>", builder.toString().equals(gold)
== true);
   }



Mime
View raw message