lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markrmil...@apache.org
Subject svn commit: r765584 - /lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java
Date Thu, 16 Apr 2009 11:50:37 GMT
Author: markrmiller
Date: Thu Apr 16 11:50:36 2009
New Revision: 765584

URL: http://svn.apache.org/viewvc?rev=765584&view=rev
Log:
feed junit found and expected in assertMatchesPattern

Modified:
    lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java

Modified: lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java?rev=765584&r1=765583&r2=765584&view=diff
==============================================================================
--- lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java (original)
+++ lucene/java/trunk/src/test/org/apache/lucene/search/TestSort.java Thu Apr 16 11:50:36
2009
@@ -984,7 +984,7 @@
       }
     }
     // System.out.println ("matching \""+buff+"\" against pattern \""+pattern+"\"");
-    assertTrue (Pattern.compile(pattern).matcher(buff.toString()).matches());
+    assertTrue ("found:" + buff + " expected:" + pattern, Pattern.compile(pattern).matcher(buff.toString()).matches());
   }
 
   private HashMap getScores (ScoreDoc[] hits, Searcher searcher)



Mime
View raw message