[hibernate-commits] Hibernate SVN: r15439 - search/trunk/src/test/org/hibernate/search/test/worker/duplication.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Wed Oct 29 12:59:46 EDT 2008


Author: hardy.ferentschik
Date: 2008-10-29 12:59:46 -0400 (Wed, 29 Oct 2008)
New Revision: 15439

Modified:
   search/trunk/src/test/org/hibernate/search/test/worker/duplication/WorkDuplicationTest.java
Log:
Added test case for HSEARCH-257

Modified: search/trunk/src/test/org/hibernate/search/test/worker/duplication/WorkDuplicationTest.java
===================================================================
--- search/trunk/src/test/org/hibernate/search/test/worker/duplication/WorkDuplicationTest.java	2008-10-29 16:52:19 UTC (rev 15438)
+++ search/trunk/src/test/org/hibernate/search/test/worker/duplication/WorkDuplicationTest.java	2008-10-29 16:59:46 UTC (rev 15439)
@@ -1,4 +1,4 @@
-// $Id:$
+// $Id$
 package org.hibernate.search.test.worker.duplication;
 
 import java.util.List;
@@ -23,7 +23,7 @@
 public class WorkDuplicationTest extends SearchTestCase {
 
 	/**
-	 * This test assures that HSEARCH-257. Before the fix SEarch would issue another <code>AddLuceneWork</code> after
+	 * This test assures that HSEARCH-257. Before the fix Search would issue another <code>AddLuceneWork</code> after
 	 * the <code>DeleteLuceneWork</code>. This lead to the fact that after the deletion there was still a Lucene document
 	 * in the index.
 	 *
@@ -74,7 +74,8 @@
 		IndexSearcher searcher = new IndexSearcher( reader );
 
 		try {
-			// we have to test using Lucene directly.
+			// we have to test using Lucene directly since query loaders will ignore hits for which there is no
+			// database entry
 			TopDocs topDocs = searcher.search( luceneQuery, null, 1 );
 			assertTrue( "We should have no hit", topDocs.totalHits == 0 );
 		}




More information about the hibernate-commits mailing list