[jboss-cvs] jboss-portal/test/src/main/org/jboss/portal/test/framework/embedded ...
Julien Viet
julien at jboss.com
Mon Jul 17 08:27:13 EDT 2006
User: julien
Date: 06/07/17 08:27:13
Modified: test/src/main/org/jboss/portal/test/framework/embedded
HibernateSupport.java
Log:
added identity tests to the main testsuite
Revision Changes Path
1.5 +10 -3 jboss-portal/test/src/main/org/jboss/portal/test/framework/embedded/HibernateSupport.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: HibernateSupport.java
===================================================================
RCS file: /cvsroot/jboss/jboss-portal/test/src/main/org/jboss/portal/test/framework/embedded/HibernateSupport.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -b -r1.4 -r1.5
--- HibernateSupport.java 1 May 2006 20:44:33 -0000 1.4
+++ HibernateSupport.java 17 Jul 2006 12:27:13 -0000 1.5
@@ -36,7 +36,7 @@
/**
* @author <a href="mailto:julien at jboss.org">Julien Viet</a>
- * @version $Revision: 1.4 $
+ * @version $Revision: 1.5 $
*/
public class HibernateSupport
{
@@ -165,15 +165,22 @@
createSchema();
}
-
-
public void stop() throws Exception
{
try
{
Session currentSession = getCurrentSession();
+
+ //
if (currentSession != null)
{
+ // Commit any pending transaction
+ if (commitTransaction())
+ {
+ System.out.println("Warning : commited a transaction for the test case");
+ }
+
+ //
if (session != null)
{
session = null;
More information about the jboss-cvs-commits
mailing list