Java Mailing List Archive

http://www.gg3721.com/

Home » Hibernate Commits List »

[hibernate-commits] Hibernate SVN: r15034 -
 search/trunk/src/test/org/hibernate/search/test/embedded.

hibernate-commits

2008-08-11


Author LoginPost Reply
Author: epbernard
Date: 2008-08-11 13:02:47 -0400 (Mon, 11 Aug 2008)
New Revision: 15034

Modified:
 search/trunk/src/test/org/hibernate/search/test/embedded/EmbeddedTest.java
Log:
Fix Hardy's test

Modified: search/trunk/src/test/org/hibernate/search/test/embedded/EmbeddedTest.java
===================================================================
--- search/trunk/src/test/org/hibernate/search/test/embedded/EmbeddedTest.java  2008-08-11 16:17:19 UTC (rev 15033)
+++ search/trunk/src/test/org/hibernate/search/test/embedded/EmbeddedTest.java  2008-08-11 17:02:47 UTC (rev 15034)
@@(protected) @@
   StateCandidate candiate = new StateCandidate();
   candiate.setName( "Mueller" );
   candiate.setState( state );
+    state.setCandidate( candiate );

   Session s = openSession();
   Transaction tx = s.beginTransaction();
@@(protected) @@
   // remove the following line to see the test fails. It should not be necessary to
   // to also update the name of the candidate. Only updating the state should work
   // as well.
-    candiate.setName( "Beckstein" );
+    //candiate.setName( "Beckstein" );
   state.setName( "Hessen" );
   candiate = (StateCandidate) s.merge( candiate );
   tx.commit();

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