cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r454801 - in /incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest: ItestSetup.java pojo/PojoTestCase.java
Date Tue, 10 Oct 2006 16:06:56 GMT
Author: aadamchik
Date: Tue Oct 10 09:06:55 2006
New Revision: 454801

URL: http://svn.apache.org/viewvc?view=rev&rev=454801
Log:
CAY-682 
* switching enhancer to use Cayenne mapping metadata
* added logging to enhancer

Modified:
    incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/ItestSetup.java
    incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/pojo/PojoTestCase.java

Modified: incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/ItestSetup.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/ItestSetup.java?view=diff&rev=454801&r1=454800&r2=454801
==============================================================================
--- incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/ItestSetup.java
(original)
+++ incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/ItestSetup.java
Tue Oct 10 09:06:55 2006
@@ -23,6 +23,7 @@
 import junit.framework.Assert;
 
 import org.apache.cayenne.CayenneRuntimeException;
+import org.apache.cayenne.DataChannel;
 import org.apache.cayenne.ObjectContext;
 import org.apache.cayenne.access.DataDomain;
 import org.apache.cayenne.access.DataNode;
@@ -65,6 +66,10 @@
                         + map.getName(), e);
             }
         }
+    }
+    
+    public DataChannel getChannel() {
+        return domain;
     }
 
     public ObjectContext createObjectContext() {

Modified: incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/pojo/PojoTestCase.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/pojo/PojoTestCase.java?view=diff&rev=454801&r1=454800&r2=454801
==============================================================================
--- incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/pojo/PojoTestCase.java
(original)
+++ incubator/cayenne/main/trunk/integration-test/itest-common/src/main/java/org/apache/cayenne/itest/pojo/PojoTestCase.java
Tue Oct 10 09:06:55 2006
@@ -19,11 +19,10 @@
 package org.apache.cayenne.itest.pojo;
 
 import java.lang.instrument.ClassFileTransformer;
-import java.util.Collection;
-import java.util.HashMap;
 
 import junit.framework.TestCase;
 
+import org.apache.cayenne.DataChannel;
 import org.apache.cayenne.enhancer.CayenneEnhancer;
 import org.apache.cayenne.instrument.InstrumentUtil;
 import org.apache.cayenne.itest.ItestSetup;
@@ -36,6 +35,7 @@
     }
 
     protected static ClassFileTransformer initEnhancer() {
-        return new CayenneEnhancer(new HashMap<String, Collection<String>>());
+        DataChannel channel = ItestSetup.getInstance().getChannel();
+        return new CayenneEnhancer(channel.getEntityResolver());
     }
 }



Mime
View raw message