Author: epbernard
Date: 2007-01-24 10:50:24 -0500 (Wed, 24 Jan 2007)
New Revision: 11095
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/indexcoll/IndexedCollectionTest.java
Log:
test syncrhonization
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/indexcoll/IndexedCollectionTest.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/indexcoll/IndexedCollectionTest.java 2007-01-24
15:01:00 UTC (rev 11094)
+++
branches/Branch_3_2/HibernateExt/metadata/src/test/org/hibernate/test/annotations/indexcoll/IndexedCollectionTest.java 2007-01-24
15:50:24 UTC (rev 11095)
@@ -8,6 +8,7 @@
import org.hibernate.Session;
import org.hibernate.Transaction;
+import org.hibernate.Hibernate;
import org.hibernate.test.annotations.TestCase;
/**
@@ -434,7 +435,8 @@
s.clear();
atm = (Atmosphere) s.get( Atmosphere.class, atm.id );
- assertEquals( 1, atm.composition.size() );
+ assertTrue( ! Hibernate.isInitialized( atm.composition ) );
+ assertEquals( 1, atm.composition.size() );
assertEquals( o2.name, atm.composition.keySet().iterator().next().name );
tx.rollback();
s.close();
Show replies by date