cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r470182 - /incubator/cayenne/main/trunk/integration-test/pojo/src/test/java/org/apache/cayenne/itest/pojo/ManyToOneObjectTest.java
Date Thu, 02 Nov 2006 01:54:39 GMT
Author: aadamchik
Date: Wed Nov  1 17:54:38 2006
New Revision: 470182

URL: http://svn.apache.org/viewvc?view=rev&rev=470182
Log:
removing obsolete TODO

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

Modified: incubator/cayenne/main/trunk/integration-test/pojo/src/test/java/org/apache/cayenne/itest/pojo/ManyToOneObjectTest.java
URL: http://svn.apache.org/viewvc/incubator/cayenne/main/trunk/integration-test/pojo/src/test/java/org/apache/cayenne/itest/pojo/ManyToOneObjectTest.java?view=diff&rev=470182&r1=470181&r2=470182
==============================================================================
--- incubator/cayenne/main/trunk/integration-test/pojo/src/test/java/org/apache/cayenne/itest/pojo/ManyToOneObjectTest.java
(original)
+++ incubator/cayenne/main/trunk/integration-test/pojo/src/test/java/org/apache/cayenne/itest/pojo/ManyToOneObjectTest.java
Wed Nov  1 17:54:38 2006
@@ -22,7 +22,6 @@
 
 import org.apache.cayenne.query.SelectQuery;
 
-
 public class ManyToOneObjectTest extends PojoContextCase {
 
     public void testSelectToOne() throws Exception {
@@ -40,13 +39,12 @@
                 16, 5
         });
 
-        // TODO: andrus, 10/12/2006 this fails due to the lack of correct arc descriptors
-         SelectQuery q = new SelectQuery(ManyToOneEntity1.class);
-         List results = context.performQuery(q);
-         assertEquals(1, results.size());
-                
-         ManyToOneEntity1 o1 = (ManyToOneEntity1) results.get(0);
-         OneToManyEntity1 or = o1.getToOne();
-         assertNotNull(or);
+        SelectQuery q = new SelectQuery(ManyToOneEntity1.class);
+        List results = context.performQuery(q);
+        assertEquals(1, results.size());
+
+        ManyToOneEntity1 o1 = (ManyToOneEntity1) results.get(0);
+        OneToManyEntity1 or = o1.getToOne();
+        assertNotNull(or);
     }
 }



Mime
View raw message