db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r383271 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java
Date Sun, 05 Mar 2006 03:01:09 GMT
Author: arminw
Date: Sat Mar  4 19:01:08 2006
New Revision: 383271

URL: http://svn.apache.org/viewcvs?rev=383271&view=rev
Log:
check correct store of objects

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java?rev=383271&r1=383270&r2=383271&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java (original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/odmg/CircularTest.java Sat Mar
 4 19:01:08 2006
@@ -1487,7 +1487,7 @@
         tx.getBroker().clearCache();
 
         OQLQuery query = odmg.newOQLQuery();
-        query.create("select products from " + Shop.class.getName() + " where name like $1");
+        query.create("select shops from " + Shop.class.getName() + " where name like $1");
         query.bind(name + "%");
         Collection result = (Collection) query.execute();
         tx.commit();
@@ -1501,6 +1501,8 @@
         for(Iterator iterator = newShop.getProducts().iterator(); iterator.hasNext();)
         {
             Product p = (Product) iterator.next();
+            assertNotNull(p.getShop());
+            assertEquals(s.getId(), p.getShop().getId());
             if(p.getSubProducts() != null && p.getSubProducts().size() > 0)
             {
                 match = true;



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message