Author: jcosta(a)redhat.com
Date: 2009-06-05 08:48:36 -0400 (Fri, 05 Jun 2009)
New Revision: 16703
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/MultiTableTest.java
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
Log:
HHH-3946 - Added missing 'open transactions' and fixed the assertion failure.
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/MultiTableTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/MultiTableTest.java 2009-06-05
12:25:08 UTC (rev 16702)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/MultiTableTest.java 2009-06-05
12:48:36 UTC (rev 16703)
@@ -609,6 +609,7 @@
s.close();
s = openSession();
+ s.beginTransaction();
s.delete( s.load(Lower.class, id) );
s.getTransaction().commit();
s.close();
Modified:
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java
===================================================================
---
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java 2009-06-05
12:25:08 UTC (rev 16702)
+++
core/trunk/testsuite/src/test/java/org/hibernate/test/legacy/ParentChildTest.java 2009-06-05
12:48:36 UTC (rev 16703)
@@ -82,6 +82,7 @@
s.close();
s = openSession();
+ s.beginTransaction();
s.replicate(baz, ReplicationMode.OVERWRITE);
// HHH-2378
SessionImpl x = (SessionImpl)s;
@@ -92,6 +93,7 @@
s.close();
s = openSession();
+ s.beginTransaction();
s.replicate(baz, ReplicationMode.IGNORE);
s.getTransaction().commit();
s.close();
@@ -1032,6 +1034,7 @@
if ( (getDialect() instanceof MySQLDialect) ) {
session.connection().setTransactionIsolation(Connection.TRANSACTION_READ_COMMITTED);
}
+ session.getTransaction().begin();
// First, prime the fixture session to think the entity does not exist
try {