openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwsut...@apache.org
Subject svn commit: r543503 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java
Date Fri, 01 Jun 2007 15:24:33 GMT
Author: kwsutter
Date: Fri Jun  1 08:24:32 2007
New Revision: 543503

URL: http://svn.apache.org/viewvc?view=rev&rev=543503
Log:
I'm pretty sure the rollback() test method should be calling rollback() instead of commit()...
 :-)  I found this while attempting some other tests, so I figured I would clean this up before
somebody else stumbles across it.

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java?view=diff&rev=543503&r1=543502&r2=543503
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/test/SingleEMTestCase.java
Fri Jun  1 08:24:32 2007
@@ -84,7 +84,7 @@
         if (!tx.isActive())
             return false;
 
-        tx.commit();
+        tx.rollback();
         return true;
     }
 



Mime
View raw message