openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fa...@apache.org
Subject svn commit: r745597 - /openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java
Date Wed, 18 Feb 2009 18:34:09 GMT
Author: fancy
Date: Wed Feb 18 18:34:09 2009
New Revision: 745597

URL: http://svn.apache.org/viewvc?rev=745597&view=rev
Log:
OPENJPA-925 update testcase comments

Modified:
    openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java

Modified: openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java
URL: http://svn.apache.org/viewvc/openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java?rev=745597&r1=745596&r2=745597&view=diff
==============================================================================
--- openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java
(original)
+++ openjpa/trunk/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/relations/TestManyEagerSQL.java
Wed Feb 18 18:34:09 2009
@@ -33,7 +33,7 @@
     extends SQLListenerTestCase {
 
     public void setUp() {
-        setUp(
+        setUp(DROP_TABLES,
             OneManyEagerParent.class, OneManyEagerChild.class,
             OneManyLazyChild.class, OneOneParent.class, 
             OneOneChild.class);
@@ -212,11 +212,9 @@
         assertEquals(3, list.size());
 
         // Expected SQLs:
-        //   SELECT t0.id, t0.optLock, t1.id, t1.optLock, t1.name, t2.id, 
-        //   t2.optLock, t2.CHILD_ID, t2.name, t0.name 
-        //       FROM OneOneParent t0 
-        //       LEFT OUTER JOIN OneOneChild t1 ON t0.CHILD_ID = t1.id 
-        //       LEFT OUTER JOIN OneOneParent t2 ON t1.PARENT_ID = t2.id
+        //   SELECT t0.id, t0.optLock, t1.id, t1.optLock, t1.name, t0.name
+        //   FROM OneOneParent t0 
+        //   LEFT OUTER JOIN OneOneChild t1 ON t0.id = t1.PARENT_ID
 
         assertEquals(1, sql.size());
 
@@ -241,6 +239,9 @@
         assertEquals(3, list.size());
 
         // Expected SQLs:
+        //   SELECT t0.id, t0.optLock, t1.id, t1.optLock, t1.name, t0.name 
+        //   FROM OneOneParent t0 
+        //   LEFT OUTER JOIN OneOneChild t1 ON t0.id = t1.PARENT_ID
 
         assertEquals(1, sql.size());
 



Mime
View raw message