mirror of https://github.com/apache/openjpa.git
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.
git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@756180 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
ed0f74a34b
commit
1d92b9a5c0
|
@ -27,13 +27,11 @@ import javax.persistence.EntityManager;
|
||||||
import javax.persistence.EntityNotFoundException;
|
import javax.persistence.EntityNotFoundException;
|
||||||
import javax.persistence.OptimisticLockException;
|
import javax.persistence.OptimisticLockException;
|
||||||
import javax.persistence.Query;
|
import javax.persistence.Query;
|
||||||
import javax.persistence.TransactionRequiredException;
|
|
||||||
|
|
||||||
import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
|
import org.apache.openjpa.jdbc.conf.JDBCConfiguration;
|
||||||
import org.apache.openjpa.jdbc.sql.DBDictionary;
|
import org.apache.openjpa.jdbc.sql.DBDictionary;
|
||||||
import org.apache.openjpa.jdbc.sql.SQLErrorCodeReader;
|
import org.apache.openjpa.jdbc.sql.SQLErrorCodeReader;
|
||||||
import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
import org.apache.openjpa.persistence.test.SingleEMFTestCase;
|
||||||
import org.apache.openjpa.util.UserException;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Tests proper JPA exceptions are raised by the implementation.
|
* Tests proper JPA exceptions are raised by the implementation.
|
||||||
|
@ -54,7 +52,8 @@ public class TestException extends SingleEMFTestCase {
|
||||||
* Tests that when Optimistic transaction consistency is violated, the
|
* Tests that when Optimistic transaction consistency is violated, the
|
||||||
* exception thrown is an instance of javax.persistence.OptimisticException.
|
* 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
|
boolean supportsQueryTimeout = ((JDBCConfiguration) emf
|
||||||
.getConfiguration()).getDBDictionaryInstance().supportsQueryTimeout;
|
.getConfiguration()).getDBDictionaryInstance().supportsQueryTimeout;
|
||||||
|
|
Loading…
Reference in New Issue