db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tfisc...@apache.org
Subject svn commit: r409366 - /db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
Date Thu, 25 May 2006 11:44:47 GMT
Author: tfischer
Date: Thu May 25 04:44:47 2006
New Revision: 409366

URL: http://svn.apache.org/viewvc?rev=409366&view=rev
Log:
Bypassing test for features which are not supported by firebird and interbase

Modified:
    db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java

Modified: db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java
URL: http://svn.apache.org/viewvc/db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java?rev=409366&r1=409365&r2=409366&view=diff
==============================================================================
--- db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java (original)
+++ db/torque/test/trunk/test-project/src/java/org/apache/torque/DataTest.java Thu May 25
04:44:47 2006
@@ -29,7 +29,9 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.torque.adapter.DBDerby;
+import org.apache.torque.adapter.DBFirebird;
 import org.apache.torque.adapter.DBHypersonicSQL;
+import org.apache.torque.adapter.DBInterbase;
 import org.apache.torque.adapter.DBOracle;
 import org.apache.torque.om.StringKey;
 import org.apache.torque.test.A;
@@ -372,10 +374,13 @@
     public void testBitType() throws Exception
     {
         if (Torque.getDB(Torque.getDefaultDB()) instanceof DBOracle
-        		|| Torque.getDB(Torque.getDefaultDB()) instanceof DBDerby)
+        		|| Torque.getDB(Torque.getDefaultDB()) instanceof DBDerby
+                || Torque.getDB(Torque.getDefaultDB()) instanceof DBInterbase
+                || Torque.getDB(Torque.getDefaultDB()) instanceof DBFirebird)
         {
             log.error("testBitType(): "
-            		+ "BIT is known not to work with Oracle and Derby");
+            		+ "BIT is known not to work with "
+                    + "Oracle, Derby, Firebird and Interbase");
             // failing is "expected", so exit without error
             return;
         }
@@ -836,6 +841,16 @@
         }
 
         // test ordering by Aliases and in joins
+        if (Torque.getDB(Torque.getDefaultDB()) instanceof DBInterbase
+                || Torque.getDB(Torque.getDefaultDB()) instanceof DBFirebird)
+        {
+            log.error("testOrderBy(): "
+                    + "As of Firebird 1.5.2, Firebird does not seem to handle "
+                    + "self-joins correctly. "
+                    + "Skipping testing ordering by aliases and in joins.");
+            // failing is "expected", so exit without error
+            return;
+        }
         criteria = new Criteria();
         criteria.addAlias("b", BookPeer.TABLE_NAME);
         criteria.addJoin(BookPeer.AUTHOR_ID, AuthorPeer.AUTHOR_ID);
@@ -945,6 +960,15 @@
         		result.size() == 1);
         
         // check ignore case in order by
+        if (Torque.getDB(Torque.getDefaultDB()) instanceof DBInterbase
+                || Torque.getDB(Torque.getDefaultDB()) instanceof DBFirebird)
+        {
+            log.error("testIgnoreCase(): "
+                    + "Case insensitive ordering is known not to work with "
+                    + "Firebird and Interbase");
+            // failing is "expected", so exit without error
+            return;
+        }
         cleanBookstore();
         author = new Author();
         author.setName("a");
@@ -1274,6 +1298,16 @@
      */
     public void testClobs() throws Exception
     {
+        if (Torque.getDB(Torque.getDefaultDB()) instanceof DBInterbase
+                || Torque.getDB(Torque.getDefaultDB()) instanceof DBFirebird)
+        {
+            log.error("testClobs(): "
+                    + "CLOBs are known not to work with "
+                    + "Firebird and Interbase");
+            // failing is "expected", so exit without error
+            return;
+        }
+
         // clean ClobTest table
         {
             Criteria criteria = new Criteria();



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message