cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1098971 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
Date Tue, 03 May 2011 08:56:11 GMT
Author: aadamchik
Date: Tue May  3 08:56:11 2011
New Revision: 1098971

URL: http://svn.apache.org/viewvc?rev=1098971&view=rev
Log:
CAY-1562 CayenneCase unit tests conversion

DataContextBinaryPKTest - fixes for Derby

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java?rev=1098971&r1=1098970&r2=1098971&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/DataContextBinaryPKTest.java
Tue May  3 08:56:11 2011
@@ -48,8 +48,10 @@ public class DataContextBinaryPKTest ext
 
     @Override
     protected void setUpAfterInjection() throws Exception {
-        dbHelper.deleteAll("BINARY_PK_TEST2");
-        dbHelper.deleteAll("BINARY_PK_TEST1");
+        if (accessStackAdapter.supportsBinaryPK()) {
+            dbHelper.deleteAll("BINARY_PK_TEST2");
+            dbHelper.deleteAll("BINARY_PK_TEST1");
+        }
     }
 
     public void testInsertBinaryPK() throws Exception {



Mime
View raw message