cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r551643 - in /cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne: access/MiscTypesTest.java unit/AbstractAccessStack.java unit/DerbyStackAdapter.java
Date Thu, 28 Jun 2007 18:06:34 GMT
Author: aadamchik
Date: Thu Jun 28 11:06:34 2007
New Revision: 551643

URL: http://svn.apache.org/viewvc?view=rev&rev=551643
Log:
testing on Derby
somehow BLOB testing was disabled for derby (while of course derby supports blobs), so I flipped
that on

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/MiscTypesTest.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/AbstractAccessStack.java
    cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DerbyStackAdapter.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/MiscTypesTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/MiscTypesTest.java?view=diff&rev=551643&r1=551642&r2=551643
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/MiscTypesTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/access/MiscTypesTest.java
Thu Jun 28 11:06:34 2007
@@ -35,6 +35,11 @@
     }
 
     public void testSerializable() throws Exception {
+        
+        // this test requires BLOB support
+        if(!getAccessStackAdapter().supportsLobs()) {
+            return;
+        }
 
         DataContext context = createDataContext();
 

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/AbstractAccessStack.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/AbstractAccessStack.java?view=diff&rev=551643&r1=551642&r2=551643
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/AbstractAccessStack.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/AbstractAccessStack.java
Thu Jun 28 11:06:34 2007
@@ -89,6 +89,10 @@
                 if (ent instanceof DerivedDbEntity) {
                     continue;
                 }
+                
+                if("SERIALIZABLE_ENTITY".equals(ent.getName())) {
+                    System.out.println("");
+                }
 
                 // check for LOB attributes
                 if (excludeLOB) {

Modified: cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DerbyStackAdapter.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DerbyStackAdapter.java?view=diff&rev=551643&r1=551642&r2=551643
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DerbyStackAdapter.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.4-unpublished/src/test/java/org/apache/cayenne/unit/DerbyStackAdapter.java
Thu Jun 28 11:06:34 2007
@@ -43,4 +43,8 @@
     public boolean supportsCaseInsensitiveOrder() {
         return false;
     }
+    
+    public boolean supportsLobs() {
+        return true;
+    }
 }



Mime
View raw message