diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestTimeoutException.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestTimeoutException.java index 1c7fe0844..79762db9c 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestTimeoutException.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/query/TestTimeoutException.java @@ -25,6 +25,8 @@ import javax.persistence.QueryTimeoutException; import junit.framework.AssertionFailedError; +import org.apache.openjpa.jdbc.sql.DB2Dictionary; +import org.apache.openjpa.jdbc.sql.OracleDictionary; import org.apache.openjpa.persistence.exception.PObject; import org.apache.openjpa.persistence.test.SingleEMFTestCase; import org.apache.openjpa.util.OpenJPAException; @@ -39,6 +41,9 @@ public class TestTimeoutException extends SingleEMFTestCase { private final Class entityClass = PObject.class; public void setUp() { + setUnsupportedDatabases(OracleDictionary.class, DB2Dictionary.class); + if (isTestsDisabled()) + return; super.setUp(entityClass); }