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

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Mon Aug 11 13:02:48 EDT 2008


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)
@@ -273,6 +273,7 @@
 		StateCandidate candiate = new StateCandidate();
 		candiate.setName( "Mueller" );
 		candiate.setState( state );
+		state.setCandidate( candiate );
 
 		Session s = openSession();
 		Transaction tx = s.beginTransaction();
@@ -297,7 +298,7 @@
 		// 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();




More information about the hibernate-commits mailing list