cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1101591 - /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
Date Tue, 10 May 2011 18:41:11 GMT
Author: aadamchik
Date: Tue May 10 18:41:10 2011
New Revision: 1101591

URL: http://svn.apache.org/viewvc?rev=1101591&view=rev
Log:
CAY-1563 CayenneCase unit tests conversion(3)

SingleTableInheritanceTest - manually breaking circular refs when cleaning up the data

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

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java?rev=1101591&r1=1101590&r2=1101591&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/test/java/org/apache/cayenne/access/SingleTableInheritanceTest.java
Tue May 10 18:41:10 2011
@@ -18,6 +18,7 @@
  ****************************************************************/
 package org.apache.cayenne.access;
 
+import java.sql.Types;
 import java.util.List;
 
 import org.apache.cayenne.di.Inject;
@@ -45,14 +46,17 @@ public class SingleTableInheritanceTest 
 
     @Override
     protected void setUpAfterInjection() throws Exception {
+        tPerson = new TableHelper(dbHelper, "PERSON");
+        tPerson.setColumns("PERSON_ID", "NAME", "PERSON_TYPE");
+
+        // manually break circular deps
+        tPerson.update().set("DEPARTMENT_ID", null, Types.INTEGER).execute();
+
         dbHelper.deleteAll("ADDRESS");
         dbHelper.deleteAll("DEPARTMENT");
         dbHelper.deleteAll("PERSON_NOTES");
         dbHelper.deleteAll("CLIENT_COMPANY");
         dbHelper.deleteAll("PERSON");
-
-        tPerson = new TableHelper(dbHelper, "PERSON");
-        tPerson.setColumns("PERSON_ID", "NAME", "PERSON_TYPE");
     }
 
     private void create2PersonDataSet() throws Exception {



Mime
View raw message