You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by al...@apache.org on 2009/03/19 21:34:29 UTC

svn commit: r756180 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestException.java

Author: allee8285
Date: Thu Mar 19 20:34:28 2009
New Revision: 756180

URL: http://svn.apache.org/viewvc?rev=756180&view=rev
Log:
OPENJPA-991 - disable TestException.testThrowsOptimisticException() until this issue is addressed. This will avoid the test hang condition and allow other tests to proceed, when run in DB2.

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

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestException.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestException.java?rev=756180&r1=756179&r2=756180&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestException.java (original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/exception/TestException.java Thu Mar 19 20:34:28 2009
@@ -27,13 +27,11 @@
 import javax.persistence.EntityNotFoundException;
 import javax.persistence.OptimisticLockException;
 import javax.persistence.Query;
-import javax.persistence.TransactionRequiredException;
 
 import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
 import org.apache.openjpa.jdbc.sql.DBDictionary;
 import org.apache.openjpa.jdbc.sql.SQLErrorCodeReader;
 import org.apache.openjpa.persistence.test.SingleEMFTestCase;
-import org.apache.openjpa.util.UserException;
 
 /**
  * Tests proper JPA exceptions are raised by the implementation. 
@@ -54,7 +52,8 @@
 	 * Tests that when Optimistic transaction consistency is violated, the
 	 * exception thrown is an instance of javax.persistence.OptimisticException.
 	 */
-	public void testThrowsOptimisticException() {
+	// TODO: Re-enable this test once OPENJPA-991 issue is corrected.
+	public void disabledTestThrowsOptimisticException() {
     
         boolean supportsQueryTimeout = ((JDBCConfiguration) emf
             .getConfiguration()).getDBDictionaryInstance().supportsQueryTimeout;