Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Commits List »

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

hibernate-commits

2008-10-29


Author LoginPost Reply
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)
@@(protected) @@
-// $Id:$
+// $Id$
package org.hibernate.search.test.worker.duplication;

import java.util.List;
@@(protected) @@
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.
  *
@@(protected) @@
   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 );
   }

_______________________________________________
hibernate-commits mailing list
hibernate-commits@(protected)
https://lists.jboss.org/mailman/listinfo/hibernate-commits
©2008 gg3721.com - Jax Systems, LLC, U.S.A.