cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1467181 - /cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java
Date Fri, 12 Apr 2013 07:07:19 GMT
Author: aadamchik
Date: Fri Apr 12 07:07:19 2013
New Revision: 1467181

URL: http://svn.apache.org/r1467181
Log:
CAY-1806  Error importing eomodel

3.2 patch adaptaion for 3.1

Modified:
    cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java

Modified: cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java
URL: http://svn.apache.org/viewvc/cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java?rev=1467181&r1=1467180&r2=1467181&view=diff
==============================================================================
--- cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java
(original)
+++ cayenne/main/branches/STABLE-3.1/framework/cayenne-wocompat-unpublished/src/test/java/org/apache/cayenne/wocompat/EOModelProcessorTest.java
Fri Apr 12 07:07:19 2013
@@ -71,11 +71,9 @@ public class EOModelProcessorTest extend
     }
     
     public void testLoadFlattened() throws Exception {
-        URL url = getClass().getClassLoader().getResource("wotests/flattened.eomodeld/");
-        assertNotNull(url);
-
+      
         // see CAY-1806
-        DataMap map = processor.loadEOModel(url);
+        DataMap map = processor.loadEOModel("wotests/flattened.eomodeld");
         ObjEntity artistE = map.getObjEntity("Artist");
         assertNotNull(artistE);
         assertEquals(2, artistE.getRelationships().size());



Mime
View raw message